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

0 Replies