Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
When a document is saved the data from useDocumentInfo was stale.
Why?
Previously we would refresh the entire document by calling the form-state endpoint, we no longer do that.
How?
Adds a new variable accessible from useDocumentInfo, savedDocumentData, that is updated when the document is successfully saved and defaults to initialData.
What?
When a document is saved the data from useDocumentInfo was stale.
Why?
Previously we would refresh the entire document by calling the form-state endpoint, we no longer do that.
How?
Adds a new variable accessible from useDocumentInfo,
savedDocumentData
, that is updated when the document is successfully saved and defaults to initialData.