Here - http://redux-form.com/6.5.0/examples/selectingFormValues/ is an example of working with formValueSelector , it works great. As you can see, the name of the form is explicitly indicated in the example.
const selector = formValueSelector('selectingFormValues') // <-- same as form name But what if the form identifier is given by me through props , for there may be several forms on the page + the same component is used both for creating and editing the model.
let MyForm = (props) => { return( <Form form={props.form || 'default_name'}> .......... </Form> ) } MyForm = reduxForm({ fields:[.........], validate })(MyForm) const selector = formValueSelector(??) // Как мне достать идентификатор формы? .................
MyFormis passed an object in which there is a form property, and inside this function I “know everything”. The selector is also used OUT functions, and there is no access to theprops. I have already decided the question and wrote it off as an answer .. Ie I decided not to useformSelectorto access the values .. and immediately, the container passes theform.<formName>.values-form.<formName>.values