@lexical/react/useLexicalEditable
Functions
useLexicalEditable()
useLexicalEditable():
boolean
Defined in: packages/lexical-react/src/useLexicalEditable.ts:31
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