getQueryData not updated on useQuery based on comp tree #815
-
Example: https://codesandbox.io/s/react-query-cache-uhcpf?file=/src/App.tsx If I request data in L32 the cache does not become updated after the server response arrived, whereas if I put Please note that codesandbox might need you to reload the page to update the view. I encountered this issue in my project first. So it's not related to the online editor. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
are you expecting |
Beta Was this translation helpful? Give feedback.
-
@wolverineks yes, that is what I expect(ed). Does this not work? How do my two cases differ? Any help would be appreciated. |
Beta Was this translation helpful? Give feedback.
@wolverineks yes, that is what I expect(ed). Does this not work? How do my two cases differ? Any help would be appreciated.