fix(studio): stabilize selection store reads

This commit is contained in:
Miguel Angel Simon Sierra
2026-08-09 19:10:57 -04:00
parent 32769f75fe
commit 59e864cd42
+2 -1
View File
@@ -65,6 +65,7 @@ import {
readStudioUrlStateFromWindow,
resolveMasterCompositionPath,
} from "./utils/studioUrlState";
const getTimelineSelectionSet = () => usePlayerStore.getState().selectedElementIds;
// fallow-ignore-next-line complexity
export function StudioApp() {
const { projectId, resolving, waitingForServer } = useServerConnection();
@@ -275,7 +276,7 @@ export function StudioApp() {
compositionLoading,
previewIframeRef,
timelineElements,
getTimelineSelectionSet: () => usePlayerStore.getState().selectedElementIds,
getTimelineSelectionSet,
setSelectedTimelineElementId,
setTimelineSelectionSet,
setRightCollapsed: panelLayout.setRightCollapsed,