T
TanStack10mo ago
extended-salmon

QueryObserver: duplicate queries found warning

I am noticing this error frequently in my terminal:
[QueriesObserver]: Duplicate Queries found. This might result in unexpected behavior.
[QueriesObserver]: Duplicate Queries found. This might result in unexpected behavior.
I can't figure out where this is happening or which query key is "duplicated". Is there a way I can debug this more easily?
2 Replies
rival-black
rival-black10mo ago
it means you have useQueries somewhere where you have the same queryKey multiple times in the useQueries call
extended-salmon
extended-salmonOP10mo ago
That makes a lot of sense, thank you!

Did you find this page helpful?