We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
let
1 parent 70341d6 commit e1350f9Copy full SHA for e1350f9
src/persistQueryClient/persist.ts
@@ -153,8 +153,7 @@ export function persistQueryClient(
153
}
154
155
// Attempt restore
156
- let restorePromise = Promise.resolve()
157
- restorePromise = persistQueryClientRestore(props).then(() => {
+ const restorePromise = persistQueryClientRestore(props).then(() => {
158
if (!hasUnsubscribed) {
159
// Subscribe to changes in the query cache to trigger the save
160
persistQueryClientUnsubscribe = persistQueryClientSubscribe(props)
0 commit comments