You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The duplicate keys check occurs prior to default options being set on the queries which generates the queryHash.
The below contains 2 unique query key's. However the duplicate keys warning logs since these queries are checked as-is and they do not yet have a queryHash.
Describe the bug
The duplicate keys check occurs prior to default options being set on the queries which generates the queryHash.
The below contains 2 unique query key's. However the duplicate keys warning logs since these queries are checked as-is and they do not yet have a queryHash.
const observer = new QueriesObserver(queryClient, [ { queryKey: [ 'Hippo', 'Layout', 'detail', 'id1', ], }, { queryKey: [ 'Hippo', 'Layout', 'detail', 'id2', ], }, ])
Your minimal, reproducible example
https://codesandbox.io/p/sandbox/55fr36
Steps to reproduce
(CTA set up to do this for you in the codesandbox)
Expected behavior
We expect unique keys to not throw a duplicate key console warning.
How often does this bug happen?
None
Screenshots or Videos
No response
Platform
All
Tanstack Query adapter
None
TanStack Query version
v5.62.7
TypeScript version
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: