You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Live Preview: beforeChange hook not reflected in admin ui #10536
When applying a beforeChange hook to a collection, changes to the record does not reflect in the ui in Live Preview view.
This was fixed for the Edit view in #10268 but persists in Live Preview mode.
Also, updates of the data in the hook is not received in the the admin.livePreview defined function for generating the preview url. Since the pathname to the page depends on the slug field, it's not possible to construct the correct pathname upon changing the slug.
Also, i'm not sure if this is a bug or intended but when autosave:true is defined in the collection config, changes in hooks are not reflected at all, both in Edit and Live Preview mode.
+1 this is an issue I have recently run into - especially to do with hooks and autosave not reflecting changes in the admin UI. Only upon a hard refresh of the page does the updated value show.
This was fixed for the Edit view in #10268 but persists in Live Preview mode.
This was fixed in #12860. The live preview view is now mounted to the document root so the logic is no longer split between those views. Huge win in a lot of ways.
Also, updates of the data in the hook is not received in the the admin.livePreview defined function for generating the preview url. Since the pathname to the page depends on the slug field, it's not possible to construct the correct pathname upon changing the slug.
This is a known bug and something we definitely need to fix, see #13055. A similar problem is being looked at in #12956 but this only addresses the symptom, not the underlying issue.
Also, i'm not sure if this is a bug or intended but when autosave:true is defined in the collection config, changes in hooks are not reflected at all, both in Edit and Live Preview mode.
This is another known bug, see #10515. But I've got a fix for this queued up here: #13416.
Activity
jeremyProwseYS commentedon Jan 21, 2025
+1 this is an issue I have recently run into - especially to do with hooks and autosave not reflecting changes in the admin UI. Only upon a hard refresh of the page does the updated value show.
eustachi0 commentedon Jan 24, 2025
Same issue here. Thanks for reporting it
jacobsfletch commentedon Aug 11, 2025
This was fixed in #12860. The live preview view is now mounted to the document root so the logic is no longer split between those views. Huge win in a lot of ways.
This is a known bug and something we definitely need to fix, see #13055. A similar problem is being looked at in #12956 but this only addresses the symptom, not the underlying issue.
This is another known bug, see #10515. But I've got a fix for this queued up here: #13416.
fix(templates): only generate slug from title on demand (#12956)
github-actions commentedon Aug 19, 2025
This issue has been automatically locked.
Please open a new issue if this issue persists with any additional detail.