You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/pages/guides/migrating-to-react-query-3.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Previous versions of React Query were awesome and brought some amazing new featu
20
20
- Observe queries/mutations outside of React
21
21
- Use the React Query core logic anywhere you want!
22
22
- Bundled/Colocated Devtools via `react-query/devtools`
23
-
- Cache Persistence to localstorage (experimental via `react-query/persistQueryClient-experimental` and `react-query/createLocalStoragePersistor-experimental`)
23
+
- Cache Persistence to web storage (experimental via `react-query/persistQueryClient-experimental` and `react-query/createWebStoragePersistor-experimental`)
> VERY IMPORTANT: This utility is currently in an experimental stage. This means that breaking changes will happen in minor AND patch releases. Use at your own risk. If you choose to rely on this in production in an experimental stage, please lock your version to a patch-level version to avoid unexpected breakages.
7
7
8
8
## Installation
9
9
10
-
This utility comes packaged with `react-query` and is available under the `react-query/createLocalStoragePersistor-experimental` import.
10
+
This utility comes packaged with `react-query` and is available under the `react-query/createWebStoragePersistor-experimental` import.
11
11
12
12
## Usage
13
13
14
-
- Import the `createLocalStoragePersistor` function
15
-
- Create a new localStoragePersistor
14
+
- Import the `createWebStoragePersistor` function
15
+
- Create a new webStoragePersistor
16
16
- Pass it to the [`persistQueryClient`](../persistQueryClient) function
0 commit comments