Initialize ref for tracking active transform session

This commit is contained in:
2026-04-27 00:31:00 +02:00
parent b93f48fe96
commit 0b45a76539

View File

@@ -2201,6 +2201,9 @@ export function App({ store, initialStatusMessage }: AppProps) {
const activePanelId = editorState.activeViewportPanelId;
const viewportToolPreview = editorState.viewportTransientState.toolPreview;
const transformSession = editorState.viewportTransientState.transformSession;
const latestActiveTransformSessionRef = useRef<ActiveTransformSession | null>(
null
);
const entityList = getEntityInstances(editorState.document.entities);
const entityDisplayList = getSortedEntityDisplayLabels(
editorState.document.entities,