Skip to content

Commit

Permalink
Stop running editor benchmarks on mount
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaudcolas committed Feb 2, 2023
1 parent b8c0d11 commit 4c897c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/components/EditorBenchmark.tsx
Expand Up @@ -9,7 +9,7 @@ import BenchmarkResults, { BenchResultsType } from "./BenchmarkResults";

type Props = {
componentProps: unknown;
runOnMount: boolean;
runOnMount?: boolean;
};

type State = {
Expand Down
4 changes: 1 addition & 3 deletions examples/components/EditorWrapper.tsx
Expand Up @@ -110,9 +110,7 @@ class EditorWrapper extends Component<EditorWrapperProps, EditorWrapperState> {
</li>
</ul>
{/* Running multiple editors with the same base state is a source of issues. */}
{editorState ? null : (
<EditorBenchmark componentProps={this.props} runOnMount />
)}
{editorState ? null : <EditorBenchmark componentProps={this.props} />}
<Highlight
value={JSON.stringify(content || initialContent, null, 2) || ""}
/>
Expand Down

0 comments on commit 4c897c3

Please sign in to comment.