79137470

Date: 2024-10-29 13:45:52
Score: 1
Natty:
Report link

Don't worry about double execution when developing with React, my guess: Strict Mode with a development build

Why did you set the const function drawDealerCard as a dependecy for your useEffect hook? This hook triggers upon changes of the provided dependencies, hence it gets called upon changes of isDealerHidden and drawDealerCard. I reckon to only keep isDealerHidden.

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: c7nj7n