1
ReactAdvanced#state#patterns
In development StrictMode intentionally mounts, unmounts and remounts components to surface missing cleanup and impure logic. It does not happen in production builds.
<StrictMode><App /></StrictMode> // effect runs twice in dev — add proper cleanup instead of removing StrictMode