Skip to content

[v8.0.4] Initial Values not available in Field componentWillMount #4304

@lewisheadden

Description

@lewisheadden

Are you submitting a bug report or a feature request?

Bug Report

What is the current behavior?

In componentWillMount for Field/FieldArray etc. components, field values are not set to their initialValues. See that in the console.log from componentWillMount in the sandbox the field value is "".

What is the expected behavior?

In 7.4.2, initial values were available in Field components during the componentWillMount lifecycle. See that the console.log now reads jim as per the provided initial value.

Sandbox Link

Redux Form 8.0.4: https://codesandbox.io/s/0yvykqqxwl
Redux Form 7.4.2: https://codesandbox.io/s/p423x6y30

What's your environment?

Redux Form 8.0.4

Other information

Please let me know if you need any more clarity and thanks for all the work you do!

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