You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: useEffect does not run twice due to remounting in strict mode and dev run #35017
Hi, I’m Ishita. I’d like to work on this issue and investigate why useEffect is not running twice in Strict Mode under React 19.1.1, despite the expected remount behavior.
Could you please assign this issue to me?
Thanks!
The report states useEffect is not running twice (i.e., only a single mount-like lifecycle is observed). This suggests a regression in the development-only mount/unmount/remount logic for effects.
I am confirming the bug and requesting it be assigned for investigation into the Strict Mode component tree remount logic in the specified version (19.1.1).
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!
Activity
ish1416 commentedon Nov 5, 2025
Hi, I’m Ishita. I’d like to work on this issue and investigate why useEffect is not running twice in Strict Mode under React 19.1.1, despite the expected remount behavior.
Could you please assign this issue to me?
Thanks!
shubhanshu2103 commentedon Nov 9, 2025
The current behavior deviates from the documented Strict Mode remounting semantics since React 18.
Expected output (React 18+ Strict Mode dev): [DebugMount] mounted [DebugMount] cleanup [DebugMount] mounted
The report states useEffect is not running twice (i.e., only a single mount-like lifecycle is observed). This suggests a regression in the development-only mount/unmount/remount logic for effects.
I am confirming the bug and requesting it be assigned for investigation into the Strict Mode component tree remount logic in the specified version (19.1.1).
github-actions commentedon Feb 7, 2026
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!
github-actions commentedon Feb 14, 2026
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!