Skip to content

Infinite REGISTER_FIELD/UNREGISTER_FIELD loop #2103

@elmeister

Description

@elmeister

First of all - thanks for the great component to keep form state in a Redux store!
It helps us a lot to manage customisable forms.

The problem we have with 6.2.0 is that infinite REGISTER_FIELD/UNREGISTER_FIELD loop appears when we try to get form field values. Initial values is an object, containing array { dataLocators: [] }. Here is the code we use to get current values:

@reduxForm({
  form: 'layout-generator-settings',
  validate
})
@connect(
  state => ({
    values: selector(state, 'dataLocators')
  })
)

That's it, now everything redux-form does on form load - registering and unregistering all values in array
screen shot 2016-11-09 at 22 01 30
screen shot 2016-11-09 at 22 04 13

Will appreciate your help a lot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions