Skip to content

Commit 8c8eb0a

Browse files
author
Sachith Gullapalli
committed
update query config in cache on observer mount
1 parent a56a5b5 commit 8c8eb0a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/queryObserver.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,8 @@ export class QueryObserver<TResult, TError> {
310310
query = config.queryCache.createQuery(config)
311311
}
312312

313+
query.config = config
314+
313315
if (query === prevQuery) {
314316
return
315317
}

0 commit comments

Comments
 (0)