Skip to content

enabled flag doesn't seem to stop query from happening when suspense: true #642

@bugzpodder

Description

@bugzpodder
const url = `/api/user/posts?user_id=${userId}`;
const { data } = useQuery(url, () => ky.get(url).json(), { enabled: userId });

I also tried enabled: false and it doesn't seem to stop the query from going off.

Edit: suspense: true needs to be enabled.

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