Skip to content

Autosaving not stopped when save in progress #13230

@carstenblt

Description

@carstenblt

Describe the Bug

While saving a document, the autosave will still trigger. This can lead to an autosave happening while a document is being published/manually saved.

I believe this is not the intended behavior. The other way around, while an autosave is in progress, publishing is disabled by the UI.

Link to the code that reproduces this issue

will provide if neccessary

Reproduction Steps

  1. Have hooks that take 5 seconds to save a document
  2. Edit some data
  3. Immediately publish the edit.

Now an autosave will trigger, while the manual save is in progress.

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

area: ui

Environment Info

Binaries:
  Node: 22.17.1
  npm: 10.9.2
  Yarn: 1.22.19
  pnpm: 10.12.1
Relevant Packages:
  payload: 3.46.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: needs-triagePossible bug which hasn't been reproduced yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions