T
TanStack7mo ago
rival-black

Query Cache methods find and findAll docs

Hello, I was checking the documentation for QueryCache and I believe that it might not be updated with the newer v5 requirements. Documentation page mentions that both find and findAll expect a queryKey as first argument https://tanstack.com/query/v5/docs/reference/QueryCache/#querycachefind https://tanstack.com/query/v5/docs/reference/QueryCache/#querycachefind However, with v5 the idea is passing an object with { queryKey, ... } compatible with the QueryOptions schema. And passing only the queryKey will error. Also mentioned in the last block of this v5 migration section https://tanstack.com/query/v5/docs/reference/QueryCache/#querycachefind
No description
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?