Skip to content

Bug: eslint-plugin-react-hooks not working inside of Promise #26186

@yuhenghenrycai

Description

@yuhenghenrycai

React version:
"eslint-plugin-react-hooks": "^4.2.0"

Link to code example:
rule of hook(eslint-plugin-react-hooks) did not fire when it is inside of a Promise block. Please find the detailed explanation in example code below. thx
https://codesandbox.io/s/romantic-austin-uyoiyj?file=/src/generateSomething.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution: StaleAutomatically closed due to inactivityStatus: UnconfirmedA potential issue that we haven't yet confirmed as a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions