Skip to main content

Module: @lexical/react/useLexicalEditable

References

useLexicalEditable

Re-exports 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

Defined in

packages/lexical-react/src/useLexicalEditable.ts:31