Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid initial NetworkStatus.poll for watched queries.
In commit 6e0135d (part of PR apollographql#5565) I added a this.queryStore.initQuery call to the QueryManager#watchQuery method, to ensure the queryStore has information about watched queries as early as possible. However, I mistakenly copied the isPoll option value from the initQuery call site in fetchQuery, which caused some watched queries (those that use polling) to have NetworkStatus.poll instead of NetworkStatus.loading before any network activity had occurred. This commit fixes that problem by always passing isPoll:false in watchQuery, regardless of whether options.pollInterval is defined.
- Loading branch information