fix(32-01): remove joinSession from deps to fix TDZ error
Original code didn't include joinSession in useEffect deps. Function is defined after useEffect and accessed via closure. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
98163c2acb
commit
c4ec621a08
|
|
@ -500,7 +500,8 @@ const JKSessionScreen = () => {
|
|||
return;
|
||||
}
|
||||
joinSession();
|
||||
}, [sessionGuardsPassed, userTracks, hasJoined, joinSession]);
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [sessionGuardsPassed, userTracks, hasJoined]); // joinSession defined below, accessed via closure
|
||||
|
||||
// Create stable debounced sync function
|
||||
const syncTracksDebounced = useMemo(
|
||||
|
|
|
|||
Loading…
Reference in New Issue