Review before applying
Compare actual behavior with the expected result. If a check fails, investigate it before applying more changes.
A failed save should not erase an afternoon’s edits. DameCode brings form state, initial values and save handlers into a Windows project conversation, with proposed code available for your review.
const dirty = !sameValues(initialValues, values);
return { values, dirty, canReset: dirty };Compare actual behavior with the expected result. If a check fails, investigate it before applying more changes.
Base URL, credentials and a reachable server.
Test reverting a field and refusing to clear edits after a failed save.
const dirty = !sameValues(initialValues, values);
return { values, dirty, canReset: dirty };