-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
Description
Describe the Bug
The useDocumentForm hook added in #9869 is not available in livePreview.
Link to the code that reproduces this issue
Reproduction Steps
Related to: #9869
- Add a custom block with
useDocumentForm
to the Lexical editor in a livePreview-enabled collection.
When in "Edit" mode, the document form data is being logged as expected:
Parent Document Fields: {title: {…}, content: {…}, updatedAt: {…}, createdAt: {…}}
However, after clicking on "Live Preview" in the admin panel, then useDocumentForm
becomes undefined:
Parent Document Fields: undefined
CC: @AlessioGr
Which area(s) are affected? (Select all that apply)
plugin: richtext-lexical
Environment Info
Node: 22.12.0
payload: 3.24.0
next: 15.1.5