We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2afedee commit 4f52f3aCopy full SHA for 4f52f3a
examples/angular/basic-persister/src/app/app.config.ts
@@ -4,7 +4,7 @@ import {
4
provideTanStackQuery,
5
withDevtools,
6
} from '@tanstack/angular-query-experimental'
7
-import { withPersistQueryClient } from '@tanstack/angular-query-persist-client-experimental'
+import { withPersistQueryClient } from '@tanstack/angular-query-persist-client'
8
import { createSyncStoragePersister } from '@tanstack/query-sync-storage-persister'
9
import type { ApplicationConfig } from '@angular/core'
10
@@ -29,6 +29,9 @@ export const appConfig: ApplicationConfig = {
29
persistOptions: {
30
persister: localStoragePersister,
31
},
32
+ onSuccess: () => {
33
+ console.log('Persisted query client successfully')
34
+ }
35
}),
36
),
37
],
0 commit comments