79264279

Date: 2024-12-09 08:31:13
Score: 1
Natty:
Report link

I don't think this can be fixed. This is the native useEffect behavior with Strict Mode, described in the documentation.

https://react.dev/reference/react/StrictMode

Your components will re-run Effects an extra time to find bugs caused by missing Effect cleanup.
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: beloyar