Commit 4da7d2d
fix: notifyOnNetworkStatusChange default to false (#61)
ApolloClient QueryManager mutates the watchQueryOptions passed in to watchQuery and makes this field false if it is undefined. This breaks the query caching mechanism because invalidateCachedObservableQuery is called with this mutated watchQueryOptions and so the cache key for options changes from "{}" to "{notifyOnNetworkStatusChange: false}" and the stale observableQuery is never removed from the cache.
https://github.com/apollographql/apollo-client/blob/3510493a2398f79bf193ab7579bbda87081cffcc/packages/apollo-client/src/core/QueryManager.ts#L658
Closes #591 parent bef4b86 commit 4da7d2d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
0 commit comments