Skip to content
This repository has been archived by the owner on Jul 8, 2023. It is now read-only.

React warning raised when using OnReceivedProps #27

Closed
ekaradon opened this issue May 23, 2019 · 2 comments
Closed

React warning raised when using OnReceivedProps #27

ekaradon opened this issue May 23, 2019 · 2 comments

Comments

@ekaradon
Copy link

Hello,

When using your great addition plugin to recompose, I see the following warning:
It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.

See the example here (look at the debugger warning):
https://codesandbox.io/s/beautiful-merkle-ldcxs
Screenshot_20190523_183526

Is it possible to fix this? Could I help?

Regards,

@deepsweet
Copy link
Owner

Thanks! Fixed in [email protected]

@ekaradon
Copy link
Author

Thanks! 👍

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

2 participants