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
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.
Describe the Bug
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.
Link to the code that reproduces this issue
https://github.com/bebejane/payload-hook-bug
Reproduction Steps
Which area(s) are affected? (Select all that apply)
area: ui
Environment Info
The text was updated successfully, but these errors were encountered: