onChange multiple fields #1081
Replies: 2 comments 3 replies
-
Hi @simplecommerce, sorry for the late response. Yes, calling Yo* ur proposal of the "updater" form, similar to the
Both of these could will break backward compatibility, but it's something we may consider for v4. |
Beta Was this translation helpful? Give feedback.
-
We got back to it (it took us a while), and we think that:
To sum up, we're still considering this functionality, but we'd rather limit the API and have "one correct way" to do everything instead. |
Beta Was this translation helpful? Give feedback.
-
Hi, in my current project, I am making a field dependent on another, so that it disables/updates itself based on another field's value.
I am using
onChange
in order to update the fields that need to change based on the other field.My issue, is I have multiple fields to update, and I am thinking that its not really efficient to call
onChange
multiple times.Is there a way to update the model directly instead in one change?
For example:
Instead of doing
I would do
I know this might not be possible right now, but what do you think? Or is there a better way?
Or are you already waiting for other
onChange
calls so it isn't re-rendered multiple times?Sorry if I am not clear.
Beta Was this translation helpful? Give feedback.
All reactions