79789162

Date: 2025-10-13 10:27:06
Score: 1
Natty:
Report link

Because React.js hot reload (Fast Refresh) actually remounts your component when any imported file changes — not just re-renders it.

So even though you used useEffect([]) and React.memo, the component is destroyed and recreated, causing the effect to run again.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mukesh Subramoni