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:
Nuwan 2026-03-05 22:41:11 +05:30
parent 98163c2acb
commit c4ec621a08
1 changed files with 2 additions and 1 deletions

View File

@ -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(