payloadcms/payload

Postgres: Block content doesn't refresh in rich text fields

Closed this issue · 2 comments

Describe the Bug

Problem Description:

When editing text content inside a block that's within a Lexical rich text field and saving it, the admin UI doesn't update to reflect the changes. A browser refresh is required to see the updated content.

I tested it with Mongo and Postgres, and the problem seems to only appear on Postgres

Link to the code that reproduces this issue

https://github.com/mhernesniemi/payload-block-refresh

Reproduction Steps

  1. Connect blank postgres db
  2. Add new articles page
  3. Add "Text Block" into content field
  4. Save
  5. Edit "Text Block" text
  6. Save

Which area(s) are affected? (Select all that apply)

db-postgres, plugin: richtext-lexical

Environment Info

Binaries:
  Node: 22.11.0
  npm: 10.9.0
  Yarn: 1.22.22
  pnpm: 9.13.2
Relevant Packages:
  payload: 3.56.0
  next: 15.4.4
  @payloadcms/db-postgres: 3.56.0
  @payloadcms/email-nodemailer: 3.56.0
  @payloadcms/graphql: 3.56.0
  @payloadcms/next/utilities: 3.56.0
  @payloadcms/payload-cloud: 3.56.0
  @payloadcms/richtext-lexical: 3.56.0
  @payloadcms/translations: 3.56.0
  @payloadcms/ui/shared: 3.56.0
  react: 19.1.0
  react-dom: 19.1.0
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.6.0: Mon Jul 14 11:30:55 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T6031
  Available memory (MB): 36864
  Available CPU cores: 14

🚀 This is included in version v3.58.0

This issue has been automatically locked.
Please open a new issue if this issue persists with any additional detail.