TanStackT
TanStack8mo ago
10 replies
colossal-harlequin

Unable to clear persisted queries

I'm using the experimental_createQueryPersister to persist query data in indexedDB.
Unlike PersistQueryClientProvider and createAsyncStoragePersister which deletes the persisted data when queryClient.clear() is triggered, the data is not deleted when using the experimental persister.

Is there a solution to this while maintaining the experimental persister.
Was this page helpful?