Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update persistQueryClient.md #7854

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions docs/framework/react/plugins/persistQueryClient.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ You can use this to explicitly persist the cache at the moment(s) you choose.
persistQueryClientSave({
queryClient,
persister,
buster = '',
dehydrateOptions = undefined,
buster: '',
dehydrateOptions: undefined,
})
```

Expand All @@ -83,8 +83,8 @@ Runs `persistQueryClientSave` whenever the cache changes for your `queryClient`.
persistQueryClientSubscribe({
queryClient,
persister,
buster = '',
dehydrateOptions = undefined,
buster: '',
dehydrateOptions: undefined,
})
```

Expand All @@ -99,8 +99,8 @@ You can use this to restore the cache at moment(s) you choose.
persistQueryClientRestore({
queryClient,
persister,
maxAge = 1000 * 60 * 60 * 24, // 24 hours
buster = '',
maxAge: 1000 * 60 * 60 * 24, // 24 hours
buster: '',
hydrateOptions = undefined,
})
```
Expand All @@ -118,10 +118,10 @@ This functionality is preserved from version 3.x.
persistQueryClient({
queryClient,
persister,
maxAge = 1000 * 60 * 60 * 24, // 24 hours
buster = '',
hydrateOptions = undefined,
dehydrateOptions = undefined,
maxAge: 1000 * 60 * 60 * 24, // 24 hours
buster: '',
hydrateOptions: undefined,
dehydrateOptions: undefined,
})
```

Expand Down
Loading