cristiansarov
cristiansarov
Trying to simplify the code to give it to you, I came across this: PollEditComponent = reduxForm({form: 'PollEditComponent'})(PollEditComponent); export default connect(state => ({ initialValues: state.community.poll.pollDetails, formData: state.form.PollEditComponent && state.form.PollEditComponent.values }))(PollEditComponent);...
My case doesn't work in any situation. I've externalized every render function, a have used Redux Form selectors for selecting the form values (http://redux-form.com/6.4.3/docs/api/Selectors.md/), still the same problem. Every time...
@sslotsky Thank you, I think I understand the concept of re-rendering, thank you, I will try to externalise the form values.
Here I reproduced the problem http://www.webpackbin.com/4J60qekLf
And this is the solution for me http://www.webpackbin.com/V11Q_fkIG The map() inside the field array is the problem, passing a component to each map iteration solves the problem because only re-rendered...
If I don't use inline validation on trigger re-rendering of the FieldArray, I don't get the re-registering issue. Check if you don't re-render the FieldArray, this makes the map inside...
Thank you !!!! Lost 4 hours on this !