fix: Prevent infinite render loops when useSuspenseQueries has duplicate queryKeys #9886
main fromrefs/pull/9886/head·merged by TkDodo View on GitHub🎯 Changes#
Fixes an infinite re-render loop in useSuspenseQueries (and useQueries) when duplicate query keys are provided introduced in #8771.
While duplicate query keys are technically unsupported and log a warning, the current behavior causes the application to crash due to an infinite render loop, which is a severe degradation.
The issue#
QueriesObserver used a Map keyed by queryHash to track observers, causing duplicate queries to overwrite each other in the map. This forced all duplicate queries to share a single observer instance. During updates, this shared observer was repeatedly reconfigured with conflicting options (like different select functions) within the same render cycle, causing its state to thrash and triggering infinite re-renders.
The fix#
Updated QueriesObserver to track a list of observers per hash (Map<string, QueryObserver[]>). This ensures each duplicate query is matched to its own distinct, stable observer instance, preventing the state conflict.
✅ Checklist#
- I have followed the steps in the Contributing guide.
- I have tested this code locally with
pnpm run test:pr.
🚀 Release Impact#
- This change affects published code, and I have generated a changeset.
- This change is docs/CI/dev-only (no release).
Summary by CodeRabbit#
Bug Fixes
- Prevents infinite render loops when using duplicate query keys with useSuspenseQueries; improves stability when multiple queries share the same key.
Tests
- Added tests validating duplicate query keys no longer cause unbounded re-renders under Suspense and that resolution occurs as expected.
Chores
- Released a changeset bumping related packages to patch versions containing the fix.
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: react-query
github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: query-core
Walkthrough#
Changes shift observer tracking to arrays per queryHash, reuse observers to avoid duplicate-key infinite renders, add a regression test for duplicate query keys in useSuspenseQueries, and add a changeset bumping two TanStack packages to patch releases.
Changes#
Cohort / File(s) Summary Changeset entry .changeset/nine-shoes-tap.mdAdds a changeset bumping @tanstack/react-queryand@tanstack/query-coreto patch releases; documents fix preventing infinite render loops whenuseSuspenseQueriesreceives duplicatequeryKeys.Observer reuse refactor packages/query-core/src/queriesObserver.tsReplaces single-observer mapping with queryHash -> observer[]; groups previous observers by hash and reuses observers by shifting from arrays or creating newQueryObserverinstances; adjusts control flow for observer selection and attachment.Regression test(s) packages/react-query/src/__tests__/useSuspenseQueries.test.tsxAdds test(s) "should handle duplicate query keys without infinite loops" verifying bounded render count and correct suspend/resolve behavior when duplicate query keys and different selectors are used. Sequence Diagram#
sequenceDiagram participant App as Application participant USQ as useSuspenseQueries participant QO as queriesObserver participant Cache as Query Cache rect rgb(241,250,255) Note over QO: group prevObservers by queryHash → observer[] end App->>USQ: call useSuspenseQueries(queries with duplicate keys) USQ->>QO: request observer assignments loop per query QO->>QO: check observer array for queryHash alt array non-empty QO->>QO: reuse observer (shift from array) else array empty QO->>QO: create new QueryObserver end QO->>Cache: attach/update observer for query end Cache-->>USQ: observers registered USQ-->>App: render (suspended/resolved) with stable observersEstimated code review effort#
🎯 3 (Moderate) | ⏱️ ~25 minutes
- Pay attention to: reuse/shift logic and edge cases in
packages/query-core/src/queriesObserver.ts; observer lifecycle and cleanup. - Verify determinism and flakiness risk in
packages/react-query/src/__tests__/useSuspenseQueries.test.tsx.
Possibly related PRs#
- TanStack/query#9592: Modifies
queriesObserver.tsearly-return/result-change logic—related to observer tracking behavior. - TanStack/query#9639: Also changes
packages/query-core/src/queriesObserver.tsto address observer tracking and infinite-render issues.
Suggested reviewers#
- TkDodo
Poem#
🐰 Hopping through queries with keys the same, Arrays line up neatly, no more looping game. Observers step forward, shifted out with care, Suspense settles softly — renders stay fair. ✨
Pre-merge checks and finishing touches#
❌ Failed checks (1 warning)
Check name Status Explanation Resolution Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstringsto improve docstring coverage.✅ Passed checks (2 passed)
Check name Status Explanation Title check ✅ Passed The title clearly and specifically summarizes the main fix: preventing infinite render loops in useSuspenseQueries with duplicate queryKeys. Description check ✅ Passed The description includes all required sections from the template with comprehensive details about the problem, solution, and completed checklist items. ✨ Finishing touches
- 📝 Generate docstrings
🧪 Generate unit tests (beta)
- Create PR with unit tests
- Post copyable unit tests in a comment
📜 Recent review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between 8f6ecf5b50d19d201b8184bd0eb334aaa5c175b4 and a3ae6a0a9b61d0ff284f31ebafe076878e8b32ec.
📒 Files selected for processing (2)
packages/query-core/src/queriesObserver.ts(1 hunks)packages/react-query/src/__tests__/useSuspenseQueries.test.tsx(1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
- packages/react-query/src/tests/useSuspenseQueries.test.tsx
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: sukvvon Repo: TanStack/query PR: 9892 File: packages/solid-query-persist-client/src/__tests__/PersistQueryClientProvider.test.tsx:331-335 Timestamp: 2025-11-22T09:06:05.219Z Learning: In TanStack/query test files, when a queryFn contains side effects (e.g., setting flags for test verification), prefer async/await syntax for clarity; when there are no side effects, prefer the .then() pattern for conciseness.📚 Learning: 2025-08-19T03:18:18.303Z
Learnt from: oscartbeaumont Repo: TanStack/query PR: 9564 File: packages/solid-query-devtools/src/production.tsx:2-3 Timestamp: 2025-08-19T03:18:18.303Z Learning: In the solid-query-devtools package, the codebase uses a pattern of type-only default imports combined with typeof for component type annotations (e.g., `import type SolidQueryDevtoolsComp from './devtools'` followed by `typeof SolidQueryDevtoolsComp`). This pattern is consistently used across index.tsx and production.tsx files, and the maintainers prefer consistency over changing this approach.Applied to files:
packages/query-core/src/queriesObserver.ts
🧬 Code graph analysis (1)
packages/query-core/src/queriesObserver.ts (1)
packages/query-core/src/queryObserver.ts (2)
QueryObserver(41-747)options(379-385)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: Test
- GitHub Check: Preview
🔇 Additional comments (2)
packages/query-core/src/queriesObserver.ts (2)
238-251: LGTM! Array-based grouping prevents observer conflicts.The shift from a single-observer map to
Map<string, Array<QueryObserver>>is the core fix. By grouping existing observers by theirqueryHash, each duplicate query can claim its own distinct observer instance (via.shift()later), eliminating the state thrashing that caused infinite renders.The early return on line 242 safely handles the case where
queryHashmight be undefined, avoiding map pollution and correctly addressing the type-safety concern raised in the previous review.
257-264: LGTM! Reuse-or-create logic ensures stable observer pairing.The
.shift()on line 257 pops the first available observer from the grouped array (if any), ensuring each query is paired with a distinct, stable observer instance. When no cached observer exists, line 259 creates a fresh one. This guarantees that duplicatequeryKeyentries won't share a single observer and trigger re-configuration conflicts during the same render cycle.Note: This does create additional observers for duplicate keys, increasing memory usage, but since duplicate keys are already unsupported and emit a warning (lines 94-103), the trade-off is acceptable for correctness.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment `@coderabbitai help` to get the list of available commands and usage tips.- Pay attention to: reuse/shift logic and edge cases in
olivierbeaulieu(GitHub profile, opens in a new tab) changed the title
Actionable comments posted: 0
🧹 Nitpick comments (1)
packages/query-core/src/queriesObserver.ts (1)
254-263: Observer consumption logic correctly prevents state thrashing.The use of
shift()at line 256 ensures each query gets its own observer instance, even when multiple queries share the same queryHash. This prevents the infinite loop that occurred when a single observer was reconfigured multiple times per render with conflicting options.The fallback to
new QueryObserverat line 257 handles cases where no previous observer exists for reuse. The logic is sound and maintains observer stability across renders.Optional: While
shift()is O(n), it's acceptable here since duplicate keys are rare and arrays are small. If performance becomes a concern in the future, consider tracking an index instead of mutating the array. However, this is a minor optimization and not necessary now.📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between 66a194e6b1c2813f1cd277e9280179c81d5d4ea4 and 429c4a5da4a1a308514fa5089d874615a068d471.
📒 Files selected for processing (3)
.changeset/nine-shoes-tap.md(1 hunks)packages/query-core/src/queriesObserver.ts(1 hunks)packages/react-query/src/__tests__/useSuspenseQueries.test.tsx(1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-09-02T17:57:33.184Z
Learnt from: TkDodo Repo: TanStack/query PR: 9612 File: packages/query-async-storage-persister/src/asyncThrottle.ts:0-0 Timestamp: 2025-09-02T17:57:33.184Z Learning: When importing from tanstack/query-core in other TanStack Query packages like query-async-storage-persister, a workspace dependency "tanstack/query-core": "workspace:*" needs to be added to the package.json.Applied to files:
.changeset/nine-shoes-tap.md
🧬 Code graph analysis (2)
packages/react-query/src/__tests__/useSuspenseQueries.test.tsx (1)
packages/react-query/src/__tests__/utils.tsx (1)
renderWithClient(9-23)
packages/query-core/src/queriesObserver.ts (1)
packages/query-core/src/queryObserver.ts (2)
QueryObserver(41-747)options(379-385)
🔇 Additional comments (3)
packages/react-query/src/__tests__/useSuspenseQueries.test.tsx (1)
186-257: Excellent test coverage for the duplicate key scenario.The test properly validates that duplicate query keys with different selectors no longer cause infinite render loops. The structure is clear:
- Two queries share the same base key but have different
selectfunctions renderCounttracks total renders to detect loops- Assertions verify single suspend/resolution and bounded renders
Minor suggestion: The
renderCount < 10assertion at line 256 is somewhat arbitrary. Consider adding a comment explaining the expected render count (e.g., "Expected: 1 suspend + 1 resolution ≈ 2-3 renders") to make the test's intent clearer.packages/query-core/src/queriesObserver.ts (1)
238-250: LGTM! Observer grouping by queryHash is correctly implemented.The change from
Map<string, QueryObserver>toMap<string, Array<QueryObserver>>is the key fix. Each queryHash now maps to an array of observers, enabling proper tracking when duplicate query keys exist. The grouping logic correctly handles both the case where an entry already exists (push to array) and when it doesn't (create new array)..changeset/nine-shoes-tap.md (1)
1-6: LGTM! Changeset properly documents the patch release.The changeset correctly identifies both affected packages (
@tanstack/react-queryand@tanstack/query-core) and uses patch version bumps, which is appropriate for a bug fix. The description clearly states what issue is being resolved.Actionable comments posted: 1
🧹 Nitpick comments (1)
packages/query-core/src/queriesObserver.ts (1)
253-262: Observer matching logic is correct with minor performance consideration.The use of
shift()to consume observers from the array ensures each query gets a distinct observer instance, which is exactly what's needed to prevent the state thrashing. The FIFO order provides reasonable stability when query order doesn't change.Performance note:
shift()has O(n) complexity for arrays, but given that duplicate query keys are unsupported (and a warning is logged), the arrays should be small in practice, making this acceptable.If performance becomes a concern with many duplicates in the future, consider using an index-based approach:
const prevObserversMap = new Map<string, { observers: Array<QueryObserver>; index: number }>() // During matching: const entry = prevObserversMap.get(defaultedOptions.queryHash) const match = entry && entry.index < entry.observers.length ? entry.observers[entry.index++] : undefinedHowever, this optimization is not necessary given the current use case.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between 429c4a5da4a1a308514fa5089d874615a068d471 and 495c063718a2313ff3634e620b81a3f01d3ebb09.
📒 Files selected for processing (1)
packages/query-core/src/queriesObserver.ts(1 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
packages/query-core/src/queriesObserver.ts (1)
packages/query-core/src/queryObserver.ts (2)
QueryObserver(41-747)options(379-385)
🔇 Additional comments (1)
packages/query-core/src/queriesObserver.ts (1)
238-249: Excellent fix for the duplicate key issue!The change from mapping
queryHashto a single observer to mapping it to an array of observers correctly addresses the root cause of the infinite render loop. This ensures each query with a duplicate key gets its own stable observer instance instead of sharing one.@@ -235,6 +235,7 @@235235 #findMatchingObservers(236236 queries: Array<QueryObserverOptions>,237237 ): Array<QueryObserverMatch> {238- const prevObserversMap = new Map(239- this.#observers.map((observer) => [observer.options.queryHash, observer]),240- )238+ const prevObserversMap = new Map<string, Array<QueryObserver>>()239+240+ this.#observers.forEach((observer) => {241+ const key = observer.options.queryHash!⚠️ Potential issue | 🔴 Critical
🧩 Analysis chain
Verify the non-null assertion is safe.
The non-null assertion on
observer.options.queryHash!assumes thatqueryHashis always defined. While this should be true sinceQueryObserverconstructor callssetOptions()which defaults the options (and defaulted options should includequeryHash), it's still a runtime assumption that could fail if the observer's options state is unexpected.
🏁 Script executed:
#!/bin/bash # Verify that queryHash is always set on defaulted options # Search for defaultQueryOptions implementations and queryHash assignment echo "=== Checking defaultQueryOptions implementations ===" ast-grep --pattern $'defaultQueryOptions($$$) { $$$ }' echo -e "\n=== Checking queryHash assignments in QueryObserver ===" rg -nP --type=ts -C5 'queryHash.*=' packages/query-core/src/queryObserver.ts echo -e "\n=== Checking for any cases where observer.options might not have queryHash ===" rg -nP --type=ts -C3 'observer\.options\.queryHash' packages/query-core/src/Length of output: 1222
I need to trace the initialization path more carefully. Let me search for the QueryObserver constructor and the setOptions/defaulting mechanism.
🏁 Script executed:
#!/bin/bash echo "=== Looking for QueryObserver constructor ===" rg -nP --type=ts -A20 'class QueryObserver' packages/query-core/src/queryObserver.ts | head -40 echo -e "\n=== Looking for setOptions method in QueryObserver ===" rg -nP --type=ts -A15 'setOptions\s*\(' packages/query-core/src/queryObserver.ts | head -30 echo -e "\n=== Checking for queryHash initialization in baseObserver or queryObserver ===" rg -nP --type=ts 'queryHash' packages/query-core/src/queryObserver.ts | head -20 echo -e "\n=== Looking for where queryHash gets assigned to options ===" rg -nP --type=ts 'queryHash\s*:' packages/query-core/src/ | head -20Length of output: 2909
I need to check the
defaultQueryOptionsimplementation and verify thatqueryHashis indeed set on options.
🏁 Script executed:
#!/bin/bash echo "=== Looking for defaultQueryOptions implementation ===" rg -nP --type=ts -A30 'defaultQueryOptions\s*\(' packages/query-core/src/queryClient.ts | head -50 echo -e "\n=== Checking QueryObserverOptions type definition ===" rg -nP --type=ts 'interface QueryObserverOptions|type QueryObserverOptions' packages/query-core/src/ -A10 | head -40 echo -e "\n=== Looking for queryHash in options context ===" rg -nP --type=ts 'options\.queryHash|options\[.queryHash.\]' packages/query-core/src/ -C2 | head -40Length of output: 5292
Let me find the actual
defaultQueryOptionsmethod definition:
🏁 Script executed:
#!/bin/bash echo "=== Finding defaultQueryOptions method definition ===" rg -nP --type=ts 'defaultQueryOptions\s*\([^)]*\)\s*{' packages/query-core/src/queryClient.ts -A50 | head -60 echo -e "\n=== Also check for the method signature without body on same line ===" rg -nP --type=ts 'defaultQueryOptions' packages/query-core/src/queryClient.ts -B2 -A5 | grep -A5 'defaultQueryOptions' | head -30Length of output: 995
Let me check the type definitions more carefully:
🏁 Script executed:
#!/bin/bash echo "=== Getting full QueryObserverOptions type definition ===" rg -nP --type=ts 'interface QueryObserverOptions' packages/query-core/src/types.ts -A50 | head -80 echo -e "\n=== Getting QueryOptions type definition (parent) ===" rg -nP --type=ts 'interface QueryOptions|type QueryOptions' packages/query-core/src/types.ts -A50 | head -100 echo -e "\n=== Check if queryHash is defined anywhere in types.ts ===" rg -nP --type=ts 'queryHash' packages/query-core/src/types.ts | head -20Length of output: 4909
Remove the non-null assertion or ensure
queryHashis guaranteed to exist.Line 241 uses a non-null assertion on
observer.options.queryHash!, but thequeryHashfield is typed as optional (queryHash?: string) onQueryOptions. WhiledefaultQueryOptions()may compute or setqueryHashat runtime, the type system doesn't guarantee it's present. This creates a type safety violation.Either ensure the type reflects that
queryHashis always set after defaulting, or use optional chaining with a fallback to handle cases where it might be undefined.🤖 Prompt for AI Agents
In packages/query-core/src/queriesObserver.ts around line 241, the code uses a non-null assertion on observer.options.queryHash!, which is typed optional and therefore unsafe; either make queryHash required on the option type after defaults are applied or avoid the assertion by reading the value safely (e.g. use optional chaining with a fallback key such as a computed hash or JSON.stringify of the options) so key always has a defined string; update types or change the key assignment to handle undefined without using "!".✅ Addressed in commit 8f6ecf5
Actionable comments posted: 0
🧹 Nitpick comments (1)
packages/query-core/src/queriesObserver.ts (1)
255-264: Observer matching logic is sound.The use of
shift()(line 257) ensures each query gets a distinct observer from the pool, with new observers created only when needed. The optional chaining and nullish coalescing handle all edge cases correctly.Consider adding a brief comment explaining the shift pattern for future maintainers, as it's a key part of preventing the duplicate key issue:
queries.forEach((options) => { const defaultedOptions = this.#client.defaultQueryOptions(options) + // Shift ensures each query gets its own observer, preventing shared state conflicts const match = prevObserversMap.get(defaultedOptions.queryHash)?.shift() const observer = match ?? new QueryObserver(this.#client, defaultedOptions)📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between 495c063718a2313ff3634e620b81a3f01d3ebb09 and 8f6ecf5b50d19d201b8184bd0eb334aaa5c175b4.
📒 Files selected for processing (1)
packages/query-core/src/queriesObserver.ts(1 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
packages/query-core/src/queriesObserver.ts (1)
packages/query-core/src/queryObserver.ts (2)
QueryObserver(41-747)options(379-385)
🔇 Additional comments (1)
packages/query-core/src/queriesObserver.ts (1)
238-251: Excellent fix for the infinite render loop issue.The array-based grouping is the right approach to handle duplicate query keys. Each query will now get its own stable observer instance instead of sharing one, which prevents the state thrashing that caused infinite re-renders.
Also, I notice the past review concern about the non-null assertion on
queryHashhas been addressed. The code now readsobserver.options.queryHashwithout the!assertion (line 241) and includes a defensive checkif (!key) return(line 242) to handle undefined cases gracefully.View your CI Pipeline Execution ↗ for commit a3ae6a0a9b61d0ff284f31ebafe076878e8b32ec
Command Status Duration Result nx affected --targets=test:sherif,test:knip,tes...✅ Succeeded 4m 7s View ↗ nx run-many --target=build --exclude=examples/*...✅ Succeeded 1m 24s View ↗
☁️ Nx Cloud last updated this comment at
2025-11-25 16:34:26UTCMore templates
- @tanstack/query-example-angular-auto-refetching
- @tanstack/query-example-angular-basic
- @tanstack/query-example-angular-basic-persister
- @tanstack/query-example-angular-devtools-panel
- @tanstack/query-example-angular-infinite-query-with-max-pages
- @tanstack/query-example-angular-optimistic-updates
- @tanstack/query-example-angular-pagination
- @tanstack/query-example-angular-query-options-from-a-service
- @tanstack/query-example-angular-router
- @tanstack/query-example-angular-rxjs
- @tanstack/query-example-angular-simple
- @tanstack/query-example-react-algolia
- @tanstack/query-example-react-auto-refetching
- @tanstack/query-example-react-basic
- @tanstack/query-example-react-basic-graphql-request
- @tanstack/query-example-chat
- @tanstack/query-example-react-default-query-function
- @tanstack/query-example-react-devtools-panel
- @tanstack/query-example-eslint-legacy
- @tanstack/query-example-react-infinite-query-with-max-pages
- @tanstack/query-example-react-load-more-infinite-scroll
- @tanstack/query-example-react-nextjs
- @tanstack/query-example-react-nextjs-app-prefetching
- @tanstack/query-example-nextjs-suspense-streaming
- @tanstack/query-example-react-offline
- @tanstack/query-example-react-optimistic-updates-cache
- @tanstack/query-example-react-optimistic-updates-ui
- @tanstack/query-example-react-pagination
- @tanstack/query-example-react-playground
- @tanstack/query-example-react-prefetching
- @tanstack/query-example-react-react-native
- @tanstack/query-example-react-router
- @tanstack/query-example-react-rick-morty
- @tanstack/query-example-react-shadow-dom
- @tanstack/query-example-react-simple
- @tanstack/query-example-react-star-wars
- @tanstack/query-example-react-suspense
- @tanstack/query-example-svelte-auto-refetching
- @tanstack/query-example-svelte-basic
- @tanstack/query-example-svelte-load-more-infinite-scroll
- @tanstack/query-example-svelte-optimistic-updates
- @tanstack/query-example-svelte-playground
- @tanstack/query-example-svelte-simple
- @tanstack/query-example-svelte-ssr
- @tanstack/query-example-svelte-star-wars
- @tanstack/query-example-solid-astro
- @tanstack/query-example-solid-basic
- @tanstack/query-example-solid-basic-graphql-request
- @tanstack/query-example-solid-default-query-function
- @tanstack/query-example-solid-simple
- @tanstack/query-example-solid-start-streaming
- @tanstack/query-example-vue-2.6-basic
- @tanstack/query-example-vue-2.7-basic
- @tanstack/query-example-vue-basic
- @tanstack/query-example-vue-dependent-queries
- @tanstack/query-example-vue-nuxt3
- @tanstack/query-example-vue-persister
- @tanstack/query-example-vue-simple
@tanstack/angular-query-experimental
npm i https://pkg.pr.new/@tanstack/angular-query-experimental@9886@tanstack/eslint-plugin-query
npm i https://pkg.pr.new/@tanstack/eslint-plugin-query@9886@tanstack/query-async-storage-persister
npm i https://pkg.pr.new/@tanstack/query-async-storage-persister@9886@tanstack/query-broadcast-client-experimental
npm i https://pkg.pr.new/@tanstack/query-broadcast-client-experimental@9886@tanstack/query-core
npm i https://pkg.pr.new/@tanstack/query-core@9886@tanstack/query-devtools
npm i https://pkg.pr.new/@tanstack/query-devtools@9886@tanstack/query-persist-client-core
npm i https://pkg.pr.new/@tanstack/query-persist-client-core@9886@tanstack/query-sync-storage-persister
npm i https://pkg.pr.new/@tanstack/query-sync-storage-persister@9886@tanstack/react-query
npm i https://pkg.pr.new/@tanstack/react-query@9886@tanstack/react-query-devtools
npm i https://pkg.pr.new/@tanstack/react-query-devtools@9886@tanstack/react-query-next-experimental
npm i https://pkg.pr.new/@tanstack/react-query-next-experimental@9886@tanstack/react-query-persist-client
npm i https://pkg.pr.new/@tanstack/react-query-persist-client@9886@tanstack/solid-query
npm i https://pkg.pr.new/@tanstack/solid-query@9886@tanstack/solid-query-devtools
npm i https://pkg.pr.new/@tanstack/solid-query-devtools@9886@tanstack/solid-query-persist-client
npm i https://pkg.pr.new/@tanstack/solid-query-persist-client@9886@tanstack/svelte-query
npm i https://pkg.pr.new/@tanstack/svelte-query@9886@tanstack/svelte-query-devtools
npm i https://pkg.pr.new/@tanstack/svelte-query-devtools@9886@tanstack/svelte-query-persist-client
npm i https://pkg.pr.new/@tanstack/svelte-query-persist-client@9886@tanstack/vue-query
npm i https://pkg.pr.new/@tanstack/vue-query@9886@tanstack/vue-query-devtools
npm i https://pkg.pr.new/@tanstack/vue-query-devtools@9886commit:
a3ae6a0nice work! does that mean we can actually support the same key multiple times within useQueries?
Codecov Report#
:white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 59.84%. Comparing base (
46ebef2) to head (a3ae6a0). :warning: Report is 1 commits behind head on main.Additional details and impacted files
@@ Coverage Diff @@ ## main #9886 +/- ## =========================================== + Coverage 45.79% 59.84% +14.05% =========================================== Files 200 129 -71 Lines 8421 5640 -2781 Branches 1928 1536 -392 =========================================== - Hits 3856 3375 -481 + Misses 4116 1959 -2157 + Partials 449 306 -143- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
TkDodo merged thisc01b150
TkDodo closed this
@TkDodo I'm not sure if this issue still applies? https://github.com/TanStack/query/issues/4187
Sign in to join this conversation.
🦋 Changeset detected#
Latest commit: a3ae6a0a9b61d0ff284f31ebafe076878e8b32ec
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 19 packages
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR