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 6fb8019 commit 6ba2dacCopy full SHA for 6ba2dac
1 file changed
docs/react/plugins/persistQueryClient.md
@@ -212,10 +212,11 @@ ReactDOM.createRoot(rootElement).render(
212
213
- `persistOptions: PersistQueryClientOptions`
214
- all [options](#options) you can pass to [persistQueryClient](#persistqueryclient) minus the QueryClient itself
215
-- `onSuccess?: () => void`
+- `onSuccess?: () => Promise<unknown> | unknown`
216
- optional
217
- will be called when the initial restore is finished
218
- can be used to [resumePausedMutations](../reference/QueryClient#queryclientresumepausedmutations)
219
+ - if a Promise is returned, it will be awaited; restoring is seen as ongoing until then
220
221
### useIsRestoring
222
0 commit comments