Bug: useEffectEvent having different behaviors when used with memo and without memo
React version: 19.2.0
Steps To Reproduce
- Wrap components with memo
Link to code example:
https://codesandbox.io/p/sandbox/damp-dust-skq4hf
The current behavior
Having different behaviors
The expected behavior
Having the same behavior
Duplicate of https://github.com/facebook/react/issues/34818. Fixed in https://github.com/facebook/react/pull/34831 but not yet released.
@nuintun Could you please let us know when the bug fix will be released to npm?
@billyjanitsch This issue has not been fixed in v19.2.1
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 Okay, I will close this issue after a version containing the fix is released.