Created
May 9, 2018 18:25
-
-
Save anu1097/9264542c6feaff24c4413b4e7c6878ed to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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