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
* refactor: apply import codemod to examples
* refactor: update import in typescript example
* refactor: more import updates
* chore: run prettier over examples
* chore: try to setup codesandbox-ci for the monorepo structure
* chore: force the use of npm ci in the pipeline
* chore: install with leagacy peer deps
* chore: try --force instead
* chore: re-generate lock file in the hopes that it fixes the install problems
* chore: force testing-library to v12.1.4
because 12.1.5 only supports react < 18, and we install both 17 and 18
* chore: try again with legacy peer deps now that only eslint-config is failing
* chore: try if removing examples from workspaces changes a damn thing
* Revert "chore: try if removing examples from workspaces changes a damn thing"
This reverts commit c4be184.
* chore: try a specific node version
* chore: add dependencies to correct packages
* chore: add missing dev dependencies (maybe)
* chore: add more top level devDependencies
* chore: move jscodeshift to the top, too
* chore: try with npm install
* chore: run node16 only!
* chore: run node16 only
* chore: remove devDependencies from top level package.json again
root cause seems to be sub-packages not being installed with `npm ci`, so we switched to `npm install` instead
Copy file name to clipboardExpand all lines: docs/plugins/createSyncStoragePersister.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
@@ -50,7 +50,7 @@ export type PersistRetryer = (props: {
50
50
51
51
### Predefined strategies
52
52
53
-
Per default, no retry will occur. You can use one of the predefined strategies to handle retries. They can be imported `from'react-query/persistQueryClient'`:
53
+
Per default, no retry will occur. You can use one of the predefined strategies to handle retries. They can be imported `from'@tanstack/react-query-persist-client'`:
54
54
55
55
- `removeOldestQuery`
56
56
- will return a new `PersistedClient` with the oldest query removed.
You can persist however you like. Here is an example of how to build an [Indexed DB](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API) persister. Compared to `Web Storage API`, Indexed DB is faster, stores more than 5MB, and doesn't require serialization. That means it can readily store Javascript native types, such as `Date` and `File`.
0 commit comments