arrow_backBACK TO DRILLS
Blue Beltuseeffect
useEffect Setup Logic With an Empty Dependency Array
A useEffect reads roomId inside its setup logic but uses an empty dependency array []. Later, roomId changes. What problem can occur?
A useEffect reads roomId inside its setup logic but uses an empty dependency array []. Later, roomId changes. What problem can occur?