Closed shiro closed 8 months ago
As far as I'm aware, sharing an instance of
QueryClient
could result in leaking of user-specific data to other requests, since the cache is shared (correct me if I'm wrong).The official tanstack example also re-creates the client on every request.
Suggested fix: update
src/app.tsx
to:export default function App() { const queryClient = new QueryClient({ // ... }); // ... }
Thank you for this, ye i think we should use whatever is being recommended by tanstack, if you want to make a pr go ahead if not i will make one once im available to.
As far as I'm aware, sharing an instance of
QueryClient
could result in leaking of user-specific data to other requests, since the cache is shared (correct me if I'm wrong).The official tanstack example also re-creates the client on every request.
Suggested fix: update
src/app.tsx
to: