Skip to content

Commit 4f52f3a

Browse files
committed
fix example
1 parent 2afedee commit 4f52f3a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/angular/basic-persister/src/app/app.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
provideTanStackQuery,
55
withDevtools,
66
} from '@tanstack/angular-query-experimental'
7-
import { withPersistQueryClient } from '@tanstack/angular-query-persist-client-experimental'
7+
import { withPersistQueryClient } from '@tanstack/angular-query-persist-client'
88
import { createSyncStoragePersister } from '@tanstack/query-sync-storage-persister'
99
import type { ApplicationConfig } from '@angular/core'
1010

@@ -29,6 +29,9 @@ export const appConfig: ApplicationConfig = {
2929
persistOptions: {
3030
persister: localStoragePersister,
3131
},
32+
onSuccess: () => {
33+
console.log('Persisted query client successfully')
34+
}
3235
}),
3336
),
3437
],

0 commit comments

Comments
 (0)