Skip to content

Commit 4c897c3

Browse files
committed
Stop running editor benchmarks on mount
1 parent b8c0d11 commit 4c897c3

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

examples/components/EditorBenchmark.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import BenchmarkResults, { BenchResultsType } from "./BenchmarkResults";
99

1010
type Props = {
1111
componentProps: unknown;
12-
runOnMount: boolean;
12+
runOnMount?: boolean;
1313
};
1414

1515
type State = {

examples/components/EditorWrapper.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,7 @@ class EditorWrapper extends Component<EditorWrapperProps, EditorWrapperState> {
110110
</li>
111111
</ul>
112112
{/* Running multiple editors with the same base state is a source of issues. */}
113-
{editorState ? null : (
114-
<EditorBenchmark componentProps={this.props} runOnMount />
115-
)}
113+
{editorState ? null : <EditorBenchmark componentProps={this.props} />}
116114
<Highlight
117115
value={JSON.stringify(content || initialContent, null, 2) || ""}
118116
/>

0 commit comments

Comments
 (0)