Deleted 40 lines of manual form-reset useEffect code in a React edit drawer today just by passing key={selectedUser.id} to the form component. Letting React unmount and remount the form cleanly whenever the selected record changes avoids stale field values.
commit e44fa43