Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
TkDodo committed Nov 18, 2021
1 parent ded3f9d commit ca368e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/pages/guides/migrating-to-react-query-4.md
Expand Up @@ -132,11 +132,11 @@ If you were importing anything from `'react-query/react'` directly in your proje
+ import { QueryClientProvider } from 'react-query/reactjs';
```

### `persistQueryClient` and its sister plugins are no longer expermental and have been renamed
### `persistQueryClient` and the corresponding persister plugins are no longer experimental and have been renamed

The plugins `createWebStoragePersistor` and `createAsyncStoragePersistor` have been renamed to [`createWebStoragePersister`](/plugins/createWebStoragePersister) and [`createAsyncStoragePersister`](/plugins/createAsyncStoragePersister) respectively. The interface `Persistor` in `persistQueryClient` has also been renamed to `Persister`. Checkout [this stackexchange](https://english.stackexchange.com/questions/206893/persister-or-persistor) for the motivation of this change.

Since these plugins are no longer experimental, there import paths have also been updated:
Since these plugins are no longer experimental, their import paths have also been updated:

```diff
- import { persistQueryClient } from 'react-query/persistQueryClient-experimental'
Expand Down

0 comments on commit ca368e4

Please sign in to comment.