Answer
React Strict Mode may run an extra setup and cleanup cycle to reveal missing cleanup. Make the effect safe to start and stop rather than relying on it running exactly once.
React Strict Mode may run an extra setup and cleanup cycle to reveal missing cleanup. Make the effect safe to start and stop rather than relying on it running exactly once.