diff --git a/docs/WRAPPER_REACT_QUERY.md b/docs/WRAPPER_REACT_QUERY.md index 349106a7..e5e48432 100644 --- a/docs/WRAPPER_REACT_QUERY.md +++ b/docs/WRAPPER_REACT_QUERY.md @@ -35,21 +35,15 @@ export const clientPersister = createSyncStoragePersister({ storage: clientStora 3. Use created `clientPersister` in your root component (eg. `App.tsx`) ```ts -import { QueryClientProvider } from "@tanstack/react-query"; -import { persistQueryClient } from "@tanstack/react-query-persist-client"; - -persistQueryClient({ - queryClient, - persister: clientPersister, -}); +import { PersistQueryClientProvider } from '@tanstack/react-query-persist-client' const App = () => { return ( - + {...} - + ); }; ``` -For more information check their official [docs](https://tanstack.com/query/latest/docs/framework/react/plugins/createSyncStoragePersister) +For more information check their official [docs](https://tanstack.com/query/latest/docs/framework/react/plugins/persistQueryClient#persistqueryclientprovider)