You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Find a way to subscribe to the datastore listener and refresh react-query to update its cache.
Likely to need to get the datastore instance in the page component, use useEffect to listen to events, and remove the listener in the cleanup function.
Then the listener would use an instance queryClient to invalidate the cache of the actual queryKey. This will make the query to be refetched.
The text was updated successfully, but these errors were encountered:
Find a way to subscribe to the datastore listener and refresh
react-query
to update its cache.Likely to need to get the datastore instance in the page component, use
useEffect
to listen to events, and remove the listener in the cleanup function.Then the listener would use an instance
queryClient
to invalidate the cache of the actualqueryKey
. This will make the query to be refetched.The text was updated successfully, but these errors were encountered: