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:
parent
742ced69e0
commit
e9a6e6f8bc
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue