Autosave doesn't show any errors
Link to reproduction
https://github.com/Janisvb/payload-reproduction/tree/autosave
Describe the Bug
When autosave is enabled, all errors that occure while saving the document, are hidden from the user. Additionally, the document is not marked as changed, so the user is not warned before he leaves the page.
I first opened that problem as a feature request, but I think it is acutally a bug, as it can easily lead to loss of data.
To Reproduce
yar dev _community
Without autosave, an error in the beforeChange-Hooks gets shown to the user and the user gets warned, if there are unsaved changes:
https://github.com/payloadcms/payload/assets/7983986/4d1d5184-c9e3-4fe9-a668-2048e893a928
With autosave, the same error is hidden and the user gets no warning, if there are unsaved changes:
https://github.com/payloadcms/payload/assets/7983986/77bdf88f-bcd7-4fac-91f2-76d6193368a8
Payload Version
2.8.2
Adapters and Plugins
No response