Last active
September 26, 2020 10:13
-
-
Save jaredpalmer/be1afb4ecc97a6cdb67a11e7d9271514 to your computer and use it in GitHub Desktop.
Formik
This file contains 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
Formik | |
IDLE* | |
setFieldValue -> VALIDATING | |
setValues -> VALIDATING | |
setTouched -> VALIDATING | |
setFieldTouched -> VALIDATING | |
handleChange -> VALIDATING | |
handleBlur -> VALIDATING | |
handleSubmit -> Submit Attempted | |
submitForm -> Submit Attempted | |
validateForm -> VALIDATING | |
validateField -> VALIDATING | |
setSubmitting true -> SUBMITTING | |
setSubmitting false -> IDLE | |
handleReset -> IDLE | |
resetForm -> IDLE | |
VALIDATING | |
Submit Attempted | |
has errors -> IDLE | |
no errors -> SUBMITTING | |
Not Attempting Submit* | |
has errors -> IDLE | |
no errors -> IDLE | |
SUBMITTING | |
setSubmitting false -> IDLE | |
This file contains 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
function render(model){ | |
let current_state_name = model.active_states[0].name; | |
return $("h1", | |
{style: {color: "darkBlue"}}, | |
`The current state is: ${current_state_name}`); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment