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

does useFetch have option for skip request? #366

Open
ilyanikulin opened this issue Apr 25, 2022 · 0 comments
Open

does useFetch have option for skip request? #366

ilyanikulin opened this issue Apr 25, 2022 · 0 comments

Comments

@ilyanikulin
Copy link

Are there option for skipping request by any condition?
for example:
const {data} = useFetch(/api/user/${id}, { skip: !id } ,[id])

If no, maybe add this option in feature-plan.
Apollo-Client has this option. I't really useful
https://www.apollographql.com/docs/react/data/queries/#skip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant