Answer the question
In order to leave comments, you need to log in
How to validate errors with redux-form selectors?
I get error errors from the form state with this selector.
let LoginWithFormState = reduxForm<LogInFormDataType, FormPropsType>({ form: "login",touchOnChange:true})(Login);
//@ts-ignore
LoginWithFormState = connect(
(state:any) =>
({
synchronousError : getFormSyncErrors('login')(state)
})
)(LoginWithFormState);
export default LoginWithFormState;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question