Skip to content

global watchLoading #108

@ydfzgyj

Description

@ydfzgyj

For most of my apollo queries, I want the loading indicator appears until data were fetched. But in some special conditions, the loading indicator should be hidden.

In older versions of vue-apollo, I need to add watchLoading for each query that needs to show loading. I'm glad to see a global watchLoading was added, but I can't stop it in a single query.

I have readed the source code and found that the watchLoading be setted in query option was executed before in global provider. Maybe it can return a false to avoid next step?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions