Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/framework/react/plugins/createPersister.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ If `query` is `expired`, `busted` or `malformed` it would be removed from the st

### `persisterGc(): Promise<void>`

This function can be used to sporadically clean up stoage from `expired`, `busted` or `malformed` entries.
This function can be used to sporadically clean up storage from `expired`, `busted` or `malformed` entries.

For this function to work, your storage must expose `entries` method that would return a `key-value tuple array`.
For example `Object.entries(localStorage)` for `localStorage` or `entries` from `idb-keyval`.
Expand Down
2 changes: 1 addition & 1 deletion docs/framework/vue/plugins/createPersister.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ If `query` is `expired`, `busted` or `malformed` it would be removed from the st

### `persisterGc(): Promise<void>`

This function can be used to sporadically clean up stoage from `expired`, `busted` or `malformed` entries.
This function can be used to sporadically clean up storage from `expired`, `busted` or `malformed` entries.

For this function to work, your storage must expose `entries` method that would return a `key-value tuple array`.
For example `Object.entries(localStorage)` for `localStorage` or `entries` from `idb-keyval`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<p>
In this example, each page of data remains visible as the next page is
fetched. The buttons and capability to proceed to the next page are also
supressed until the next page cursor is known. Each page is cached as a
suppressed until the next page cursor is known. Each page is cached as a
normal query too, so when going to previous pages, you'll see them
instantaneously while they are also refetched invisibly in the background.
</p>
Expand Down
2 changes: 1 addition & 1 deletion examples/react/pagination/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function Example() {
<p>
In this example, each page of data remains visible as the next page is
fetched. The buttons and capability to proceed to the next page are also
supressed until the next page cursor is known. Each page is cached as a
suppressed until the next page cursor is known. Each page is cached as a
normal query too, so when going to previous pages, you'll see them
instantaneously while they are also refetched invisibly in the
background.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function Streamed() {
<p>
For more control over error handling, try leveraging the `Switch`
component and watching the reactive `query.isError` property. See
`compoennts/query-boundary.tsx` for one possible approach.
`components/query-boundary.tsx` for one possible approach.
</p>
</div>

Expand Down
2 changes: 1 addition & 1 deletion packages/angular-query-experimental/src/inject-queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export type QueriesOptions<
>
: ReadonlyArray<unknown> extends T
? T
: // If T is *some* array but we couldn't assign unknown[] to it, then it must hold some known/homogenous type!
: // If T is *some* array but we couldn't assign unknown[] to it, then it must hold some known/homogeneous type!
// use this to infer the param types in the case of Array.map() argument
T extends Array<
QueryObserverOptionsForCreateQueries<
Expand Down
2 changes: 1 addition & 1 deletion packages/preact-query/src/useQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export type QueriesOptions<
>
: ReadonlyArray<unknown> extends T
? T
: // If T is *some* array but we couldn't assign unknown[] to it, then it must hold some known/homogenous type!
: // If T is *some* array but we couldn't assign unknown[] to it, then it must hold some known/homogeneous type!
// use this to infer the param types in the case of Array.map() argument
T extends Array<
UseQueryOptionsForUseQueries<
Expand Down
2 changes: 1 addition & 1 deletion packages/preact-query/src/useSuspenseQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export type SuspenseQueriesOptions<
>
: Array<unknown> extends T
? T
: // If T is *some* array but we couldn't assign unknown[] to it, then it must hold some known/homogenous type!
: // If T is *some* array but we couldn't assign unknown[] to it, then it must hold some known/homogeneous type!
// use this to infer the param types in the case of Array.map() argument
T extends Array<
UseSuspenseQueryOptions<
Expand Down
2 changes: 1 addition & 1 deletion packages/react-query/src/useQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export type QueriesOptions<
>
: ReadonlyArray<unknown> extends T
? T
: // If T is *some* array but we couldn't assign unknown[] to it, then it must hold some known/homogenous type!
: // If T is *some* array but we couldn't assign unknown[] to it, then it must hold some known/homogeneous type!
// use this to infer the param types in the case of Array.map() argument
T extends Array<
UseQueryOptionsForUseQueries<
Expand Down
2 changes: 1 addition & 1 deletion packages/solid-query/src/useQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ type QueriesOptions<
>
: ReadonlyArray<unknown> extends T
? T
: // If T is *some* array but we couldn't assign unknown[] to it, then it must hold some known/homogenous type!
: // If T is *some* array but we couldn't assign unknown[] to it, then it must hold some known/homogeneous type!
// use this to infer the param types in the case of Array.map() argument
T extends Array<
UseQueryOptionsForUseQueries<
Expand Down
2 changes: 1 addition & 1 deletion packages/svelte-query/src/createQueries.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export type QueriesOptions<
>
: ReadonlyArray<unknown> extends T
? T
: // If T is *some* array but we couldn't assign unknown[] to it, then it must hold some known/homogenous type!
: // If T is *some* array but we couldn't assign unknown[] to it, then it must hold some known/homogeneous type!
// use this to infer the param types in the case of Array.map() argument
T extends Array<
CreateQueryOptionsForCreateQueries<
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-query/src/useQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export type UseQueriesOptions<
>
: ReadonlyArray<unknown> extends T
? T
: // If T is *some* array but we couldn't assign unknown[] to it, then it must hold some known/homogenous type!
: // If T is *some* array but we couldn't assign unknown[] to it, then it must hold some known/homogeneous type!
// use this to infer the param types in the case of Array.map() argument
T extends Array<
UseQueryOptionsForUseQueries<
Expand Down