There's a chance that updates of the disabled prop are ignored when happening before the editor itself is ready.
Adding the ready state ensures the watcher runs again as soon as the editor has been initialized and is actually able to receive an update of the mode.
There's a chance that updates of the
disabled
prop are ignored when happening before the editor itself is ready. Adding theready
state ensures the watcher runs again as soon as the editor has been initialized and is actually able to receive an update of the mode.