T
TanStack3y ago
flat-fuchsia

QueryClient invalidation not working when prefetching

Hello all, I have a question, so I am trying to prefetch my data serverside, however when I try to invalidate after an action on my client is not working properly, however If I do not prefetch beforehand and and load the data client side my invalidate works fine,
No description
2 Replies
flat-fuchsia
flat-fuchsiaOP3y ago
No description
ambitious-aqua
ambitious-aqua3y ago
can't say much with just those screenshots. It doesn't matter where data was fetched (server / client). best you can do is look at the devtools after fetching on the server if data is where you want it to be or if it looks different than if you'd fetch on the client ...

Did you find this page helpful?