Double rendering in StrictMode when using Context
DeltekDavid opened this issue · 3 comments
We had no trouble with <StrictMode>
when using <CKEditor>
directly, but when we wrapped it in a <Context>
we suddenly saw two editors. This had us pulling our hair, out until we discovered that Strict Mode deliberately renders everything twice. We removed <StrictMode>
to unblock our proof of concept, but thought you'd like to know!
Doesn't seem like a dup of #294 since this is with <Context>
.
FWIW, we extended the editor and context similar as in the collaboration sample. Perhaps wrapping that example's <App/>
in<StrictMode>
will reproduce it? The sample doesn't have a CRA-style start
script so I'm not sure how to run it from source.
@DawidKossowski, I remember you were looking into this or something similar, what's the status there?
PR is ready, waiting for the final review: #473
@DeltekDavid Fix was released in https://github.com/ckeditor/ckeditor5-react/releases/tag/v7.0.0. Please reopen this issue (or open another one) if it's still reproducible.