Replies: 1 comment
-
This is not supported. Every https://tkdodo.eu/blog/effective-react-query-keys#caching-data |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Steps to reproduce:
Warning: TypeError: Cannot read property 'length' of undefined.
It seems that the cache structure differs between regular queries and infinite queries. As a result, if a regular query's cache remains and useInfiniteQuery is executed with the same queryKey, the error occurs when the cache is accessed internally due to the mismatch in data format.
As a workaround, I have resolved the issue by ensuring that both are implemented using useInfiniteQuery. However, is there a better solution or any plans to address this issue?
Beta Was this translation helpful? Give feedback.
All reactions