Skip to content

chore(deps): lock file maintenance #9229

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
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
1 change: 0 additions & 1 deletion docs/framework/react/guides/important-defaults.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Out of the box, TanStack Query is configured with **aggressive but sane** defaul
> To change this behavior, you can configure your queries both globally and per-query using the `staleTime` option. Specifying a longer `staleTime` means queries will not refetch their data as often

- A Query that has a `staleTime` set is considered **fresh** until that `staleTime` has elapsed.

- set `staleTime` to e.g. `2 * 60 * 1000` to make sure data is read from the cache, without triggering any kinds of refetches, for 2 minutes, or until the Query is [invalidated manually](../query-invalidation.md).
- set `staleTime` to `Infinity` to never trigger a refetch until the Query is [invalidated manually](../query-invalidation.md).
- set `staleTime` to `'static'` to **never** trigger a refetch, even if the Query is [invalidated manually](../query-invalidation.md).
Expand Down
6 changes: 5 additions & 1 deletion docs/framework/react/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ function Todos() {

return (
<div>
<ul>{query.data?.map((todo) => <li key={todo.id}>{todo.title}</li>)}</ul>
<ul>
{query.data?.map((todo) => (
<li key={todo.id}>{todo.title}</li>
))}
</ul>

<button
onClick={() => {
Expand Down
4 changes: 0 additions & 4 deletions docs/framework/react/reference/usePrefetchInfiniteQuery.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,17 @@ usePrefetchInfiniteQuery(options)
You can pass everything to `usePrefetchInfiniteQuery` that you can pass to [`queryClient.prefetchInfiniteQuery`](../../../../reference/QueryClient.md#queryclientprefetchinfinitequery). Remember that some of them are required as below:

- `queryKey: QueryKey`

- **Required**
- The query key to prefetch during render

- `queryFn: (context: QueryFunctionContext) => Promise<TData>`

- **Required, but only if no default query function has been defined** See [Default Query Function](../../guides/default-query-function.md) for more information.

- `initialPageParam: TPageParam`

- **Required**
- The default page param to use when fetching the first page.

- `getNextPageParam: (lastPage, allPages, lastPageParam, allPageParams) => TPageParam | undefined | null`

- **Required**
- When new data is received for this query, this function receives both the last page of the infinite list of data and the full array of all pages, as well as pageParam information.
- It should return a **single variable** that will be passed as the last optional parameter to your query function.
Expand Down
1 change: 0 additions & 1 deletion docs/framework/react/reference/usePrefetchQuery.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ usePrefetchQuery(options)
You can pass everything to `usePrefetchQuery` that you can pass to [`queryClient.prefetchQuery`](../../../../reference/QueryClient.md#queryclientprefetchquery). Remember that some of them are required as below:

- `queryKey: QueryKey`

- **Required**
- The query key to prefetch during render

Expand Down
1 change: 0 additions & 1 deletion docs/framework/solid/reference/useQuery.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ function App() {
## `useQuery` Parameters

- ### Query Options - `Accessor<QueryOptions>`

- ##### `queryKey: unknown[]`
- **Required**
- The query key to use for this query.
Expand Down
5 changes: 2 additions & 3 deletions packages/query-core/src/__tests__/query.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -759,12 +759,11 @@ describe('query', () => {
queryFn,
})
await vi.advanceTimersByTimeAsync(10)

expect(updates).toEqual([
;(expect(updates).toEqual([
'updated', // type: 'fetch'
'updated', // type: 'success'
]),
unsubscribe()
unsubscribe())
})

test('fetch should throw an error if the queryFn is not defined', async () => {
Expand Down
6 changes: 5 additions & 1 deletion packages/react-query/src/__tests__/ssr.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@ describe('Server Side Rendering', () => {
initialPageParam: 0,
})
return (
<ul>{query.data?.pages.map((page) => <li key={page}>{page}</li>)}</ul>
<ul>
{query.data?.pages.map((page) => (
<li key={page}>{page}</li>
))}
</ul>
)
}

Expand Down
17,789 changes: 8,079 additions & 9,710 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

Loading