Skip to content

Instantly share code, notes, and snippets.

@anu1097
Created May 9, 2018 18:25
Show Gist options
  • Save anu1097/9264542c6feaff24c4413b4e7c6878ed to your computer and use it in GitHub Desktop.
Save anu1097/9264542c6feaff24c4413b4e7c6878ed to your computer and use it in GitHub Desktop.
import createIsPristine from './isPristine';
var createIsDirty = function createIsDirty(structure) {
return function (form, getFormState) {
var isPristine = createIsPristine(structure)(form, getFormState);
return function (state) {
return !isPristine(state);
};
};
};
export default createIsDirty;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment