Skip to content

Commit

Permalink
Update persistQueryClient.md
Browse files Browse the repository at this point in the history
Object syntax,
  • Loading branch information
OmerCohenAviv authored Aug 5, 2024
1 parent 075ba1c commit 6ae5d40
Showing 1 changed file with 10 additions and 10 deletions.
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

0 comments on commit 6ae5d40

Please sign in to comment.