Skip to content

renamed deprecated unsafe lifecycle methods#50

Open
user12043 wants to merge 1 commit intominhtranite:masterfrom
user12043:master
Open

renamed deprecated unsafe lifecycle methods#50
user12043 wants to merge 1 commit intominhtranite:masterfrom
user12043:master

Conversation

@user12043
Copy link

As of react 16.3, componentWillMount, componentWillUpdate and componentWillReceiveProps lifecycle methods needs to be renamed to supress the warning about deprecation.

warning

more info here: https://hackernoon.com/problematic-react-lifecycle-methods-are-going-away-in-react-17-4216acc7d58b

@philn5d-ar
Copy link

Are you guys going to PR this and do another release soon? This is causing issues with SSR since your event registration happens on the server (it causes a memory leak) when this component is in page that's rendered dynamically on the server. It basically turns SSR server into a hobbling zombie.

@user12043
Copy link
Author

I am not going to do release new version. But to fix this issue I need to upgrade the react version too. I am going to make a commit to do this. Maybe your problem is about old version of react. Are you using the same react version with react-notifications in your project?

@philn5d-ar
Copy link

react 16.

@philn5d-ar
Copy link

But even in React 15, it is not the right place for registering events.

https://react-legacy.netlify.com/docs/react-component.html#componentwillmount

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

Successfully merging this pull request may close these issues.

2 participants