L
L
lexstile2019-01-21 16:01:27
redux
lexstile, 2019-01-21 16:01:27

Why is formSection not working in redux-form?

I use the solution - redux-form.
There's a resetSection there .
I'm doing everything right - it doesn't work.
I change to reset my own f-tion - it works. Weird.

import { resetSection } from 'redux-form';
  deleteTrusteePayer = () => {
    const { resetFormSection } = this.props;
    resetFormSection(REQUISITES_TRANSFER_FORM_NAME, REQUISITES_TRANSFER_FORM_SECTION);
    this.hideTrusteePayer();
  }
const mapDispatchToProps = {
  resetFormSection: resetSection,
};

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question