You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm setting up a remirror editor with the onChange callback to capture the active state of the commands as explained in the Usage example:
const{ commands, active }=useRemirror(()=>{setActiveCommands({bold: active.bold(),italic: active.italic(),underline: active.underline()});});
The onChange callback is correctly called if the editor element isn't placed within <React.StrictMode>. Yet, running it in StrictMode stops the callback from being called.
Description
I'm setting up a remirror editor with the
onChange
callback to capture the active state of the commands as explained in the Usage example:The
onChange
callback is correctly called if the editor element isn't placed within<React.StrictMode>
. Yet, running it in StrictMode stops the callback from being called.Reproduction case in CodeSandbox:
https://codesandbox.io/s/determined-breeze-ewjky?fontsize=14&hidenavigation=1&theme=dark
Possible workaround
Remove React.StrictMode
Checklist
The text was updated successfully, but these errors were encountered: