Skip to content

Commit df7686c

Browse files
fix(persistQueryClient): subscribe awaits restore
1 parent b3bd3fa commit df7686c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/persistQueryClient/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export function persistQueryClientSubscribe(
134134
export async function persistQueryClient(props: PersistQueryClientOptions) {
135135
if (typeof window !== 'undefined') {
136136
// Attempt restore
137-
persistQueryClientRestore(props)
137+
await persistQueryClientRestore(props)
138138

139139
// Subscribe to changes in the query cache to trigger the save
140140
return persistQueryClientSubscribe(props)

0 commit comments

Comments
 (0)