T
TanStack3y ago
sunny-green

How to bust persisted cache on SSR

I am using local storage in my nextjs project for persisting the react query cache like below. I was wondering if there is a way I can bust the cache on server side or if there is a recommended way to do it. Any help will be appreciated, thanks! ```jsx <PersistQueryClientProvider client={queryClient} persistOptions={{ persister: createSyncStoragePersister({ storage: isOnServer() ? undefined : window.localStorage, }), }} > ... </PersistQueryClientProvider>
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?