Cache problem with react-query v4
So couple days ago i found some problems, like wrong data in cache
I have api, its gets me [{alias:'one'}, {alias:'two'}]
Api working fine, but after useQuery() or prefetchQuery() im getting [{alias:'one'}, {alias:'two'}, {alias: '3'}, ... some elements that not in api response]
So i was thinking, can it have some problems with memory sharing and docker?
Where to look to fix that?
Btw, nextjs without app folder, react-query v4.24.4 with SSR prefetchQuery()
Btw, i was asking same questions here https://github.com/TanStack/query/discussions/5882
GitHub
react v4 server cache · TanStack query · Discussion #5882
Hello all. I have a couple questions. Im using v4.24.4 with SSR and nextjs without app folder So, i added getServerSideProps with await queryClient.prefetchQuery( and dehydratedState: dehydrate(que...
1 Reply
relaxed-coralOP•3y ago
So we got 8 items from SSR, but now we have 7 from api, but it didnt rerender
