When using Preview / Draft Mode with Drupal + Next.js (headless), nodes that contain Paragraphs do not display the latest draft revision in the frontend. Instead, the Next.js application continues to show the last published revision. This occurs even though editors click “Preview” in Drupal and the content is saved as a Draft under Content Moderation.
Observed Behavior:
Draft preview works for top-level node fields.
Paragraph-based fields still show the published revision.
Nested Paragraph structures never update in the React/Next.js preview.
JSON:API responses appear to return the default revision, not the working-copy revision.
Expected Behavior:
The React/Next.js frontend should display the latest draft revision, including all updated Paragraph content, when accessed via Drupal’s Preview Mode.
Environment:
Drupal 10/11 with Content Moderation, JSON:API, Paragraphs, Next module
Next.js (App Router) using Draft Mode
Integration via next-drupal / custom JSON:API fetch
Comments
Comment #2
ananthakumar commentedlooks like some change need in JSON:API revision handling (resourceVersion=rel:working-copy)
Comment #3
ananthakumar commented