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.
clientPersisterOnSuccess
1 parent b2025c3 commit 63339feCopy full SHA for 63339fe
packages/vue-query/src/vueQueryPlugin.ts
@@ -19,6 +19,7 @@ interface CommonOptions {
19
queryClientKey?: string
20
contextSharing?: boolean
21
clientPersister?: ClientPersister
22
+ clientPersisterOnSuccess?: (client: QueryClient) => void
23
}
24
25
interface ConfigOptions extends CommonOptions {
@@ -71,6 +72,7 @@ export const VueQueryPlugin = {
71
72
persisterUnmount = unmount
73
promise.then(() => {
74
client.isRestoring.value = false
75
+ options.clientPersisterOnSuccess?.(client)
76
})
77
78
0 commit comments