Skip to content

does useFetch have option for skip request? #366

Open
@ilyanikulin

Description

@ilyanikulin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions