1. A useEffect keeps firing and making duplicate API calls. How would you debug it?
Interview promptStrong signal
Understands dependencies, Strict Mode behavior, stable references, cleanup, and request cancellation.
Follow-up probes
- •When should this not be an effect?
- •How would you prevent race conditions?
Red flags
- •Removes dependencies to silence linting.
- •Cannot explain cleanup.