You should rarely have to use the state stored by redux-inputs directly, because the props passed down from connectWithInputs covers most cases. Regardless, the state for a form in redux looks like this:
{
email: {
value: '[email protected]',
error: '244535'
}
}
This represents a form with one input where the user first typed '[email protected]', but changed it to '244535', which is invalid.
This is the state stored for each input defined in your inputsConfig
value
: The last valid state the input had.error
: The state of the input if invalid, undefined otherwise. Should be displayed as value if present.pristine
: True if the input hasn't been touched or set by anything other than defaultValue or initializationvalidating
: True when async validation is in progress on this inputerrorText
: Passed down string from validator describing the error