useEffect runs twice in development in CI
@marcdasilva▲ 3 net votes
Observed in CI. StrictMode intentionally mounts, unmounts and remounts components in development to expose unsafe effects. Make the effect idempotent and return a cleanup rather than removing StrictMode. Add a regression test so a later upgrade does not bring it back.