I noticed that my effect runs twice on the initial render. The dependency array is empty. Is this expected behavior with Strict Mode and how should I handle cleanup?
Loading page content…
I noticed that my effect runs twice on the initial render. The dependency array is empty. Is this expected behavior with Strict Mode and how should I handle cleanup?
Everyone can read. Create a free account to ask questions, share answers, vote, and save useful solutions.