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
{{ message }}
Repository navigation
Commit 8be136b
Browse filesBrowse the repository at this point in the historyBrowse files
Validate persisted query keys, hashes, state objects, and data update timestamps before retrieval, restoration, garbage collection, or filtered removal. Remove malformed entries without interrupting subsequent queries, while preserving valid `null` data.
Copy file name to clipboardExpand all lines: docs/framework/react/plugins/createPersister.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,6 +104,8 @@ useMutation({
104
104
This function would attempt to retrieve persisted query by `queryHash`.
105
105
If `query` is `expired`, `busted` or `malformed` it would be removed from the storage instead, and `undefined` would be returned.
106
106
107
+
Persisted entries must have a string `queryHash`, an array `queryKey`, and a `state` object with a finite numeric `dataUpdatedAt`. Entries that do not meet these requirements are removed during retrieval, garbage collection, restoration, and filtered removal, without interrupting processing of other entries. `null` remains valid query data.
108
+
107
109
### `persisterGc(): Promise<void>`
108
110
109
111
This function can be used to sporadically clean up storage from `expired`, `busted` or `malformed` entries.
Copy file name to clipboardExpand all lines: docs/framework/vue/plugins/createPersister.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -101,6 +101,8 @@ useMutation({
101
101
This function would attempt to retrieve persisted query by `queryHash`.
102
102
If `query` is `expired`, `busted` or `malformed` it would be removed from the storage instead, and `undefined` would be returned.
103
103
104
+
Persisted entries must have a string `queryHash`, an array `queryKey`, and a `state` object with a finite numeric `dataUpdatedAt`. Entries that do not meet these requirements are removed during retrieval, garbage collection, restoration, and filtered removal, without interrupting processing of other entries. `null` remains valid query data.
105
+
104
106
### `persisterGc(): Promise<void>`
105
107
106
108
This function can be used to sporadically clean up storage from `expired`, `busted` or `malformed` entries.
0 commit comments