Tanstack getQueriesData alternative in SWR #2351
Unanswered
spacepolice10
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there. I am new at this SWR train and want to try it out but I couldn't find one feature I liked in Tanstack Query
Is there a way to create different instances of cache with one similar key? Like if I create
useSWR(['page', 'id'])
anduseSWR(['page', 'list'])
abd after that I want to access the cache of both hooks like you can withgetQueriesData(['page'])
in Tanstack https://tanstack.com/query/v4/docs/react/reference/QueryClient#queryclientgetqueriesdataAlso, it would be cool to have an opportunity to change multiple cache instances like in case with
setQueriesData
from TanstackThanks in advance
Beta Was this translation helpful? Give feedback.
All reactions