Skip to content

Autosave causes block field data collisions on slow network connections #15226

Closed

Description

@bwcroft

Describe the Bug

When autosave is enabled and the network connection is slow or unstable, adding new blocks to a block array field can result in data collisions. In these cases, block sections may be duplicated, overwritten, or merged incorrectly, which can ultimately lead to data loss.

This issue appears to occur when multiple autosave requests are in flight at the same time and resolve out of order, causing stale data to overwrite more recent changes.

Temporary Workaround

Disabling autosave prevents this issue. With autosave turned off, documents must be saved manually, which blocks further edits during the save process and avoids overlapping save requests that cause data collisions.

Link to the code that reproduces this issue

https://bitbucket.org/clearlinkit/payloadcms-issues/src/master/src/issues/autosave-reorder-corruption/AutosaveReorderCorruption.ts

Reproduction Steps

autosave-corruption-demo.mov

Which area(s) are affected?

area: ui

Environment Info

Binaries:
  Node: 20.11.0
  npm: 10.2.4
  Yarn: 1.22.22
  pnpm: 10.6.4
Relevant Packages:
  payload: 3.70.0
  next: 15.4.10
  @payloadcms/db-postgres: 3.70.0
  @payloadcms/drizzle: 3.70.0
  @payloadcms/graphql: 3.70.0
  @payloadcms/next/utilities: 3.70.0
  @payloadcms/richtext-lexical: 3.70.0
  @payloadcms/translations: 3.70.0
  @payloadcms/ui/shared: 3.70.0
  react: 19.2.1
  react-dom: 19.2.1
Operating System:
  Platform: darwin
  Arch: arm64

Activity

  1. added
    status: needs-triage
    validate-reproduction
    on Jan 15, 2026
  2. added
    area: ui
    and removed
    validate-reproduction
    on Jan 15, 2026
  3. github-actions commented on Jan 15, 2026

    @github-actions
    Contributor

    Please add a reproduction in order for us to be able to investigate.

    Depending on the quality of reproduction steps, this issue may be closed if no reproduction is provided.

    Why was this issue marked with the invalid-reproduction label?

    To be able to investigate, we need access to a reproduction to identify what triggered the issue. We prefer a link to a public GitHub repository created with create-payload-app@latest -t blank or a forked/branched version of this repository with tests added (more info in the reproduction-guide).

    To make sure the issue is resolved as quickly as possible, please make sure that the reproduction is as minimal as possible. This means that you should remove unnecessary code, files, and dependencies that do not contribute to the issue. Ensure your reproduction does not depend on secrets, 3rd party registries, private dependencies, or any other data that cannot be made public. Avoid a reproduction including a whole monorepo (unless relevant to the issue). The easier it is to reproduce the issue, the quicker we can help.

    Please test your reproduction against the latest version of Payload to make sure your issue has not already been fixed.

    I added a link, why was it still marked?

    Ensure the link is pointing to a codebase that is accessible (e.g. not a private repository). "example.com", "n/a", "will add later", etc. are not acceptable links -- we need to see a public codebase. See the above section for accepted links.

    Useful Resources

  4. removed
    status: needs-triage
    on Nov 23, 2026
  5. added a commit that references this issue on Nov 23, 2026
    7c766ec
  6. github-actions commented on Nov 24, 2026

    @github-actions
    Contributor

    🚀 This is included in version v4.0.0-beta.12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: uiinvalid-reproduction

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions