TanStackT
TanStack3y ago
1 reply
ordinary-sapphire

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
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...
react v4 server cache · TanStack query · Discussion #5882
Was this page helpful?