fix(32-01): restore original joinSession dependency array

Revert to minimal [currentSessionIdRef] deps to avoid temporal dead zone
errors. Other functions are stable refs or callbacks defined earlier.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Nuwan 2026-03-05 22:35:00 +05:30
parent 742ced69e0
commit e9a6e6f8bc
1 changed files with 4 additions and 1 deletions

View File

@ -453,7 +453,10 @@ export default function useSessionModel(app, server, sessionScreen) {
return deferred;
},
[alreadyInSession, currentSessionIdRef, inSession, resetRecordingState, updateCurrentSession]
// Note: minimal deps to avoid initialization order issues
// Functions are stable refs or defined earlier in the hook
// eslint-disable-next-line react-hooks/exhaustive-deps
[currentSessionIdRef]
);
// Set recording model (from useSessionLeave)