-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User can publish during Autosave #6648
Comments
|
Getting this error with autosave too, happens if I click publish too soon after making an update to my document:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Link to reproduction
No response
Payload Version
3.0.0-beta.37
Node Version
20
Next.js Version
14.68canary
Describe the Bug
A user can save a document during autosave. When transactions are used (with replicaSet and haven't tested Postgres but probably too) this causes race conditions, from logs:
We should disable the publish button during autosave
Reproduction Steps
Enable autosave in a collection/global config and try to publish a document during autosave.
And important to have replicaSet when using MongoDB (mongodb atlas or configured docker compose with it) either way transactions aren't used.
Adapters and Plugins
No response
The text was updated successfully, but these errors were encountered: