Learning on Web Dev Open is free for all.

Framework Internals > Effects, and the ones you should deleteThe dependency array is not a suggestion
Phase 04Effects, and the ones you should delete206 of 434

The dependency array is not a suggestion

Cause a stale closure on purpose, watch it survive review, then fix it three ways and pick the one that is not a workaround.

Build40 minAI adversary

Build this in your own editor

This one runs on your machine rather than in the browser workbench. Work to the outcomes below, then come back and mark it complete.

You should now be able to

  • Diagnose a stale closure from its symptom
  • Remove a dependency by changing the code rather than the array
Ask the community

Loading…