#How to execute callback after form.setValues sets the state
2 messages · Page 1 of 1 (latest)
const newValues = {};
form.setValues(newValues);
form.resetDirty(newValues);
2 messages · Page 1 of 1 (latest)
Hey!
How can I define some callback, that will be executed after state is changed. Particularly I want to call resetDirty() after I set new values.
const newValues = {};
form.setValues(newValues);
form.resetDirty(newValues);