Skip to content

useQuery: Implement skip option #5

Description

@denkristoffer

I've run into a few situations where conditionally executing a query would be very beneficial, for instance when one query returns the ID of the logged in user, and another query would then fetch some more user data based on that ID.

At the moment the (only?) way to do this is to create a component for the query and then conditionally render that. Implementing Apollo's skip option could make this a lot easier 🙂


Maybe some prior art here trojanowski/react-apollo-hooks#42

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions