Skip to content

GraphQLQueryWatcher retained by ApolloStore #516

@AnthonyMDev

Description

@AnthonyMDev

I might be missing something here, but it seems to me like a GraphQLQueryWatcher that is not cancelled explicitly is retained by the ApolloStore and will continue to receive updates, even if the object that created the watcher (by calling watch()) releases it.

Do I need to be ensuring that I manually cancel() my GraphQLQueryWatcher every time I'm done with it? It would be nice if, when I have no retain on the watcher, it automatically cancels.

If I'm missing something and it already works this way, then please let me know and close this!

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    cachingenhancementIssues outlining new things we want to do or things that will make our lives as devs easier

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions