Skip to content

Commit

Permalink
Quick rerendering causes editor issues (#473)
Browse files Browse the repository at this point in the history
Fix: The quick rerendering, especially in `React.StrictMode`, will no longer cause the editor errors. Closes #442, #469, #471, #476.
  • Loading branch information
Mati365 committed May 9, 2024
1 parent 93d7c69 commit ce6cad0
Show file tree
Hide file tree
Showing 25 changed files with 1,733 additions and 464 deletions.
6 changes: 3 additions & 3 deletions demo-multiroot-react-18/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState } from 'react';
import React, { StrictMode, useState } from 'react';
import MultiRootEditorDemo from './MultiRootEditorDemo';
import MultiRootEditorRichDemo from './MultiRootEditorRichDemo';
import ContextMultiRootEditorDemo from './ContextMultiRootEditorDemo';
Expand Down Expand Up @@ -43,7 +43,7 @@ export default function App(): JSX.Element {
};

return (
<>
<StrictMode>
<h1>CKEditor 5 – useMultiRootEditor – development sample</h1>

<div className="buttons" style={ { textAlign: 'center' } }>
Expand All @@ -69,6 +69,6 @@ export default function App(): JSX.Element {
</button>
</div>
{ renderDemo() }
</>
</StrictMode>
);
}

0 comments on commit ce6cad0

Please sign in to comment.