Skip to content

Missing setVariables network status #129

@jjenzz

Description

@jjenzz

When setting new variables using useQuery, the networkStatus is always 1 (loading). This is not the case with the Query component which returns 2 (setVariables).

Example with useQuery: https://codesandbox.io/s/ox93pjm0w5
Example with Query component: https://codesandbox.io/s/3xp667vonm

It also resets data when querying an uncached query which is not desirable. See Query component example for expected behaviour which does not return to Loading... state when variables change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions