Skip to content

Bug: useEffectEvent having different behaviors when used with memo and without memo #35034

@nuintun

Description

@nuintun

React version: 19.2.0

Steps To Reproduce

  1. Wrap components with memo

Link to code example:

https://codesandbox.io/p/sandbox/damp-dust-skq4hf

The current behavior

Having different behaviors

Image

The expected behavior

Having the same behavior

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions