Module: @lexical/react/useLexicalEditable
Functions
useLexicalEditable
▸ useLexicalEditable(): boolean
Get the current value for LexicalEditor.isEditable using useLexicalSubscription. You should prefer this over manually observing the value with LexicalEditor.registerEditableListener, which is a bit tricky to do correctly, particularly when using React StrictMode (the default for development) or concurrency.
Returns
boolean