Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useQuery: Implement skip option #5

Open
denkristoffer opened this issue May 13, 2019 · 0 comments
Open

useQuery: Implement skip option #5

denkristoffer opened this issue May 13, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@denkristoffer
Copy link

denkristoffer commented May 13, 2019

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

@pothos-dev pothos-dev added the enhancement New feature or request label May 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants