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

Getting error in console with <React.StrictMode> - Unsafe lifecycle methods were found within a strict-mode tree: in StrictMode #4373

Open
prjo opened this issue Feb 6, 2019 · 2 comments

Comments

@prjo
Copy link

prjo commented Feb 6, 2019

Are you submitting a bug report or a feature request?

The is a bugg

What is the current behavior?

Getting error inte console.
See my sandbox https://3yx8x3mv66.codesandbox.io/ inorder to reproduce problem.

What is the expected behavior?

No error message in colsone

Sandbox Link

https://3yx8x3mv66.codesandbox.io/

What's your environment?

Same as https://3yx8x3mv66.codesandbox.io/

Other information

@prjo prjo changed the title Getting <React.StrictMode> - Unsafe lifecycle methods were found within a strict-mode tree: in StrictMode Getting error in console with <React.StrictMode> - Unsafe lifecycle methods were found within a strict-mode tree: in StrictMode Feb 6, 2019
@dimaqq
Copy link

dimaqq commented May 14, 2019

The error is:

Warning: Unsafe lifecycle methods were found within a strict-mode tree:
    in StrictMode

componentWillMount: Please update the following components to use componentDidMount instead: Form(SimpleForm)

componentWillReceiveProps: Please update the following components to use static getDerivedStateFromProps instead: Field, Form(SimpleForm)

And the code that triggers this (I think) is:
https://github.com/erikras/redux-form/blob/7b75f1b71ace0bb4805f754347dbeb7ef96a812f/src/Form.js#L24-L26

@bryanltobing
Copy link

is there anyone already solved this problem?

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

3 participants