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

Problem with redux-forms #178

Closed
luisherranz opened this issue Jul 19, 2016 · 4 comments
Closed

Problem with redux-forms #178

luisherranz opened this issue Jul 19, 2016 · 4 comments

Comments

@luisherranz
Copy link

I am having problems trying to integrate it with redux-forms.

This is my code:

const LoginTranslated = translate('bulma')(Login);

export default reduxForm({
  form: 'login',
  fields: ['email', 'password'],
  validate,
  getFormState: state => state.bulma.reduxForm,
}, mapStateToProps)(LoginTranslated);

and I am getting this error:

Warning: setState(...): Can only update a mounted or mounting component. This usually means you called setState() on an unmounted component. This is a no-op. Please check the code for the Translate[Login] component.

It doesn't work doing it the other way around either:

const LoginForms = reduxForm({
  form: 'login',
  fields: ['email', 'password'],
  validate,
  getFormState: state => state.bulma.reduxForm,
}, mapStateToProps)(Login);

export default translate('bulma')(LoginForms);

Any ideas?

@luisherranz luisherranz changed the title Problems with redux-forms Problem with redux-forms Jul 19, 2016
@jamuhl
Copy link
Member

jamuhl commented Jul 19, 2016

could you try react-i18next@1.6.3?!?

@luisherranz
Copy link
Author

It's working, thanks!

My bad for not updating first 👎

@jamuhl
Copy link
Member

jamuhl commented Jul 19, 2016

oh not your fault...i just published 1.6.3 a few minutes ago to solve your issue ;)

@luisherranz
Copy link
Author

Then you are probably the coolest person on earth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants