arrow_backBACK TO DRILLS
Blue Beltuseeffect
Missing dependency stale closure
A useEffect logs count, but the dependency array is empty. The count state updates correctly elsewhere in the component. Why can the effect still log an outdated value?
A useEffect logs count, but the dependency array is empty. The count state updates correctly elsewhere in the component. Why can the effect still log an outdated value?