-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up legacy one-time queries after refetching in refetchQueries.
Although passing one-time { query, variables } QueryOptions in the options.include array is discouraged by the type system, it's still allowed for the refetchQueries option for mutations, so we should make sure to stop those temporary queries after they've been fetched. I didn't want to complicate the client.getObservableQueries API to return additional metadata about which queries are legacy/temporary, so I'm using query ID strings (the keys of the getObservableQueries Map) to convey that information.
- Loading branch information
Showing
2 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters