Skip to content

Commit f1ccf7a

Browse files
authored
Merge branch 'main' into fix/query-devtools-undefined-nonce
2 parents 13afc15 + d5630c9 commit f1ccf7a

184 files changed

Lines changed: 3315 additions & 1136 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"$schema": "https://unpkg.com/@changesets/config@3.1.2/schema.json",
33
"changelog": [
4-
"@svitejs/changesets-changelog-github-compact",
5-
{ "repo": "TanStack/query" }
4+
"@changesets/changelog-github",
5+
{ "repo": "TanStack/query", "disableThanks": true }
66
],
77
"commit": false,
88
"access": "public",
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@tanstack/lit-query": patch
3+
---
4+
5+
Fix redundant Lit host updates for function-backed query options, mutation state selectors, and tracked query result reads.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tanstack/query-devtools': patch
3+
---
4+
5+
Avoid crashing devtools query rows when a cached query state is temporarily unavailable.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@tanstack/query-devtools": patch
3+
---
4+
5+
Resolve devtools query rows from their stable query hash so mutated object query keys do not break row rendering.

.github/workflows/detect-agent.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/labeler.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/workflows/pr.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -66,20 +66,6 @@ jobs:
6666
github_token: ${{ secrets.GITHUB_TOKEN }}
6767
skip_step: install
6868
build_script: build:all
69-
provenance:
70-
name: Provenance
71-
runs-on: ubuntu-latest
72-
permissions:
73-
contents: read
74-
steps:
75-
- name: Checkout
76-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
77-
with:
78-
persist-credentials: false
79-
- name: Check Provenance
80-
uses: danielroe/provenance-action@41bcc969e579d9e29af08ba44fcbfdf95cee6e6c # v0.1.1
81-
with:
82-
fail-on-downgrade: true
8369
version-preview:
8470
name: Version Preview
8571
runs-on: ubuntu-latest

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
24.8.0
1+
24.16.0

docs/framework/react/guides/advanced-ssr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ One neat thing about the examples above is that the only thing that is Next.js-s
216216

217217
In the SSR guide, we noted that you could get rid of the boilerplate of having `<HydrationBoundary>` in every route. This is not possible with Server Components.
218218

219-
> NOTE: If you encounter a type error while using async Server Components with TypeScript versions lower than `5.1.3` and `@types/react` versions lower than `18.2.8`, it is recommended to update to the latest versions of both. Alternatively, you can use the temporary workaround of adding `{/* @ts-expect-error Server Component */}` when calling this component inside another. For more information, see [Async Server Component TypeScript Error](https://nextjs.org/docs/app/building-your-application/configuring/typescript#async-server-component-typescript-error) in the Next.js 13 docs.
219+
> NOTE: If you encounter a type error while using async Server Components with TypeScript versions lower than `5.1.3` and `@types/react` versions lower than `18.2.8`, it is recommended to update to the latest versions of both. Alternatively, you can use the temporary workaround of adding `{/* @ts-expect-error Server Component */}` when calling this component inside another. For more information, see [Async Server Component TypeScript Error](https://nextjs.org/docs/app/building-your-application/configuring/typescript#async-server-component-typescript-error) in the Next.js TypeScript docs.
220220
221221
> NOTE: If you encounter an error `Only plain objects, and a few built-ins, can be passed to Server Actions. Classes or null prototypes are not supported.` make sure that you're **not** passing to queryFn a function reference, instead call the function because queryFn args has a bunch of properties and not all of it would be serializable. see [Server Action only works when queryFn isn't a reference](https://github.com/TanStack/query/issues/6264).
222222

docs/framework/react/guides/query-functions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ title: Query Functions
55

66
A query function can be literally any function that **returns a promise**. The promise that is returned should either **resolve the data** or **throw an error**.
77

8+
On success, the resolved value may be anything **except `undefined`**. Queries that resolve to `undefined` will be [treated as failed](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-react-query-4#undefined-is-an-illegal-cache-value-for-successful-queries). To store "nothing" as a successful result in the query cache, resolve `null` instead.
9+
810
All of the following are valid query function configurations:
911

1012
[//]: # 'Example'

0 commit comments

Comments
 (0)