I want to use RSC queryClient in my zustand store
Basically, i was using zustand store as a wrapper around my queries and mutations to avoid extra renders of hooks (not sure if this was needed but seemed neat).
Now i'm switching my app to Next 13.5.6 (tanstack query is the latest version) with RSC and SSR. I have a zustand store configured as follows:
I expected this to work since i'm calling the request-specific cached
Error: Not implemented.
at eval (./src/lib/react-query/query-client.ts:24:155)
Is there any way around this?
Now i'm switching my app to Next 13.5.6 (tanstack query is the latest version) with RSC and SSR. I have a zustand store configured as follows:
I expected this to work since i'm calling the request-specific cached
queryClient as I do in my prefetch calls here if the window is undefined and otherwise calling my client-side queryClient. But i keep gettingError: Not implemented.
at eval (./src/lib/react-query/query-client.ts:24:155)
Is there any way around this?