Skip to content

Fetch is called in spite of conditional variables are undefined #355

Open
@fkrafi

Description

@fkrafi

Describe the bug
Fetch is called in spite of conditional variable value is undefined

⚠️ Make a Codesandbox ⚠️

const {data} = useFetch(`/api/product/${id}`, {}, [id]);

Expected behavior
Fetch shouldn't call the api when the conditional variables are undefined

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