From 6ae5d406cb92b01b96094c7f5967b9e059de04c6 Mon Sep 17 00:00:00 2001 From: Omer Cohen Date: Mon, 5 Aug 2024 12:48:15 +0300 Subject: [PATCH] Update persistQueryClient.md Object syntax, --- .../react/plugins/persistQueryClient.md | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/framework/react/plugins/persistQueryClient.md b/docs/framework/react/plugins/persistQueryClient.md index 4653f71009..b9e8fa9ba7 100644 --- a/docs/framework/react/plugins/persistQueryClient.md +++ b/docs/framework/react/plugins/persistQueryClient.md @@ -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, }) ``` @@ -83,8 +83,8 @@ Runs `persistQueryClientSave` whenever the cache changes for your `queryClient`. persistQueryClientSubscribe({ queryClient, persister, - buster = '', - dehydrateOptions = undefined, + buster: '', + dehydrateOptions: undefined, }) ``` @@ -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, }) ``` @@ -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, }) ```