react icon indicating copy to clipboard operation
react copied to clipboard

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

Open nuintun opened this issue 1 month ago • 5 comments

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

nuintun avatar Nov 03 '25 01:11 nuintun

Duplicate of https://github.com/facebook/react/issues/34818. Fixed in https://github.com/facebook/react/pull/34831 but not yet released.

billyjanitsch avatar Nov 03 '25 15:11 billyjanitsch

@nuintun Could you please let us know when the bug fix will be released to npm?

last-Programmer avatar Nov 07 '25 11:11 last-Programmer

@billyjanitsch This issue has not been fixed in v19.2.1

nuintun avatar Dec 04 '25 08:12 nuintun

Fixed in https://github.com/facebook/react/pull/34831 which hasn't been released yet. 19.2.1 did not include it on purpose.

eps1lon avatar Dec 04 '25 09:12 eps1lon

@eps1lon Okay, I will close this issue after a version containing the fix is released.

nuintun avatar Dec 05 '25 01:12 nuintun