Skip to content

InitialValues with redux-form #96

@ticketapp

Description

@ticketapp

I'm trying to add an initial value as I'm doing it with a standard redux-form, but nothing happens.
It is not documented, how can I achieve this?
Here is the snippet of code:

function mapStateToProps(state) {
  const firstName = state.auth.firstName;
  const initialValues = {
    firstName
  };
  return {
    initialValues
  };
}

export default connect(mapStateToProps)(
  reduxForm({ form: "Form" })(Form)
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions