react-froala-wysiwyg
react-froala-wysiwyg copied to clipboard
Stale Props
We have some behavior we need to tied to keypress, which will call some functionality using a state object that is in scope.
I've been trying to wrap my head around this, but this editor doesn't seem to support the idea that when a component needs re-rendered, basically the entire component needs re-initialized so it's hydrated with the new state.
I was able to extract the editor into a ref so I can inject events into it on re-render, but there doesn't seem to be a way to remove events (for example, with .off, there is only .on).
Has anyone else hit this problem? What is the expected workflow for updating the component with new scope?