Can I force all listeners to immediately rerender after calling queryCache.setQueryData()? #758
-
I'm using react-query to keep track of the user's account. When they login, I call |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
When you call |
Beta Was this translation helpful? Give feedback.
-
@tannerlinsley I have a similar issue. Here is a little representation of it: |
Beta Was this translation helpful? Give feedback.
When you call
queryCache.setQueryData('account', ...)
, any queries that use the'account'
key should and will be updated. If they don't, please create a codesandbox illustrating the issue so we can better debug it.