From 4c897c3c3c6bada94f83040c21e222dbcc12aa2a Mon Sep 17 00:00:00 2001 From: Thibaud Colas Date: Thu, 2 Feb 2023 07:12:37 +0000 Subject: [PATCH] Stop running editor benchmarks on mount --- examples/components/EditorBenchmark.tsx | 2 +- examples/components/EditorWrapper.tsx | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/components/EditorBenchmark.tsx b/examples/components/EditorBenchmark.tsx index 42ab8bb1..48a94c6a 100644 --- a/examples/components/EditorBenchmark.tsx +++ b/examples/components/EditorBenchmark.tsx @@ -9,7 +9,7 @@ import BenchmarkResults, { BenchResultsType } from "./BenchmarkResults"; type Props = { componentProps: unknown; - runOnMount: boolean; + runOnMount?: boolean; }; type State = { diff --git a/examples/components/EditorWrapper.tsx b/examples/components/EditorWrapper.tsx index bf566306..52c47237 100644 --- a/examples/components/EditorWrapper.tsx +++ b/examples/components/EditorWrapper.tsx @@ -110,9 +110,7 @@ class EditorWrapper extends Component { {/* Running multiple editors with the same base state is a source of issues. */} - {editorState ? null : ( - - )} + {editorState ? null : }