From e9a6e6f8bce6114714dfc3415ceac321ddcb6a97 Mon Sep 17 00:00:00 2001 From: Nuwan Date: Thu, 5 Mar 2026 22:35:00 +0530 Subject: [PATCH] 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 --- jam-ui/src/hooks/useSessionModel.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jam-ui/src/hooks/useSessionModel.js b/jam-ui/src/hooks/useSessionModel.js index 2a1ef7016..de1843480 100644 --- a/jam-ui/src/hooks/useSessionModel.js +++ b/jam-ui/src/hooks/useSessionModel.js @@ -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)