Skip to content

useInsertionEffect in Strict mode with strict effects  #4825

Description

@smitpatel1010

As stated here https://github.com/reactjs/reactjs.org/blob/main/content/docs/strict-mode.md?plain=1#L181 useInsertionEffect is included with enableStrictEffects flags in react. but it is not working. and react code also doesn't seem to have this check for useInsertionEffect. please suggest if this is the bug in docs or react code?

demo url - https://codesandbox.io/s/react-18-strict-mode-effects-forked-72d6wp?file=/src/App.js

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