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
Is there a way to implement the form with state (local state of Redux?)
When a field is changed, is calls onChange which calls onChange, which updates Redux, which update data, which update formData and then.. onChange is called again, and again, and again.
formData={data}
onChange={(e) => {
//update local store or redux
updateData({
data: e.formData,
} as Doc);
}}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there a way to implement the form with state (local state of Redux?)
When a field is changed, is calls onChange which calls onChange, which updates Redux, which update data, which update formData and then.. onChange is called again, and again, and again.
Beta Was this translation helpful? Give feedback.
All reactions