Allow field hooks to run onChange #2666
annardini
started this conversation in
Feature Requests & Ideas
Replies: 1 comment
-
+1. I'm having a similar issue! I'm using dispatchField "ADD_ROW" on an array when the user selects something in a separate custom component and it successfully updates the data but the UI does not refresh until another change is made such as saving. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to use a relationship field that when data is changed (
onChange
), automatically updates some read-only fields in an array in my collection. This is to prevent user error when trying to add them manually. However, Payload hooks only seem to runonSubmit
so the user would have to save then go back and edit again which is not good UX. Haven't been able to find a work around yet but think it would be good to implement for at least some hooks likebeforeChange
,afterChange
,beforeValidate
andafterRead
.Beta Was this translation helpful? Give feedback.
All reactions