P粉0054177482023-08-25 14:11:23
This is due to <StrictMode> possibly being in your root tree.
What is strict mode?
How does it cause useEffect()
to run twice?
Note:
Strict mode checks only run in development mode; they do not affect production builds.