From e715c396e1c8fdd41a6a0e057872723e5c4630b4 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Tue, 28 Apr 2026 17:59:02 +0200 Subject: [PATCH] Add refs for tracking editor simulation and selected entity draft synchronization state --- src/app/App.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/App.tsx b/src/app/App.tsx index cf8e1ea4..2d1168a5 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -3328,6 +3328,11 @@ export function App({ store, initialStatusMessage }: AppProps) { useState(() => createInitialEditorSimulationUiSnapshot(editorState.projectDocument.time) ); + const editorSimulationSnapshotTraceRef = useRef(editorSimulationSnapshot); + const selectedEntityDraftSyncTraceRef = useRef<{ + selectedEntity: EntityInstance | null; + projectDocument: typeof editorState.projectDocument; + } | null>(null); const [firstPersonTelemetry, setFirstPersonTelemetry] = useState(null); const [runtimeInteractionPrompt, setRuntimeInteractionPrompt] =