mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-25 00:07:09 +00:00
fix(studio): stabilize selection store reads
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user