How to handle user-scoped QueryClient with `react-router-ssr-query`?
I am used to the SPA / Client side pattern of defining the queryClient in a constant useState
with a key prop to rerender and ensure we never reuse cache between users
I want to move to a more SSR / Server side pattern but I don't see any docs about this
We create queryClient before router so we can have it in the context, but doesn't mention how you might ensure a fresh user-scoped cache is used when the auth state changes.
Can anyone help?
with a key prop to rerender and ensure we never reuse cache between users
I want to move to a more SSR / Server side pattern but I don't see any docs about this
We create queryClient before router so we can have it in the context, but doesn't mention how you might ensure a fresh user-scoped cache is used when the auth state changes.
Can anyone help?

