Skip to content

Bug: Rules of Hooks should not allow passing a Hook as a function argument #22254

Open
@gaearon

Description

@gaearon

See failing test in #22044.

Even if the PR gets stale, we should implement this check because currently it lets you circumvent the rule.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions