Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v6rc5] initialValues are not propagated #1570

Closed
yury-dymov opened this issue Aug 19, 2016 · 5 comments
Closed

[v6rc5] initialValues are not propagated #1570

yury-dymov opened this issue Aug 19, 2016 · 5 comments

Comments

@yury-dymov
Copy link

@connect(mapStateToProps)
@reduxForm(...)
export default class extends Component {
  render() {
    console.log(this.props.initialValues) <-- undefined
    ...
  }
}

function mapStateToProps(state){
  return { initialValues: { ...} }
}

However in v6rc4 worked fine

@hathawsh
Copy link
Contributor

hathawsh commented Aug 19, 2016

I also noticed that the initialValues prop disappeared recently. I thought the omission was intentional because it doesn't appear to be documented:

http://redux-form.com/6.0.0-rc.4/docs/api/Props.md/

On further reflection, however, I think the initialValues prop really ought to be propagated, as you say, and documented.

@martinratinaud
Copy link

I do have the same problem and rolled back to v6rc4 which works

@erikras
Copy link
Member

erikras commented Aug 23, 2016

This was fixed by #1598. I will post here again when it is released.

@erikras erikras closed this as completed Aug 23, 2016
@erikras
Copy link
Member

erikras commented Aug 25, 2016

Published in v6.0.1.

@lock
Copy link

lock bot commented Jun 2, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants