Archived
Ansicht: Schnitt-Plan wieder memoisieren (kein Recompute je Render)
This commit is contained in:
1 parent
a3a6b51db4
commit
61c2a48f52
1 file changed
+5
-5
+5
-5
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user