From 61c2a48f522fb68df655f13481ddbc96ef73e93c Mon Sep 17 00:00:00 2001 From: Karim Date: Sat, 11 Jul 2026 00:21:33 +0200 Subject: [PATCH] Ansicht: Schnitt-Plan wieder memoisieren (kein Recompute je Render) --- src/App.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 0ac675c..b281c7c 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -5001,11 +5001,11 @@ function SectionPlanView({ [isElevation, project, level, mono], ); - const plan = isElevation - ? elevationPlan - : output - ? generateSectionPlan(output, mono) - : null; + const sectionPlan = useMemo( + () => (!isElevation && output ? generateSectionPlan(output, mono) : null), + [isElevation, output, mono], + ); + const plan = isElevation ? elevationPlan : sectionPlan; const effStatus = isElevation ? (elevationPlan ? "ready" : "empty") : status; const kindLabel = level.kind === "section" ? t("stub.section") : t("stub.elevation");