Closed OriginalEXE closed 5 years ago
Yup, looks like it's probably time to remove componentWillReceiveProps
. Putting the logic in componentDidUpdate
makes sense I think. It causes one extra render each time it's called, but I'm not overly concerned since we're already causing quite a few renders. getDerivedStateFromProps
seems like a worse option anyway since it's so new and would require us to put the previous prop in state.
I'm approving this. I just have to make absolutely sure that it doesn't break anything before releasing.
Released in 5.0.0! Sorry for the delay.
No worries, thank you for your work and for this new release!
Hello,
First of all, thank you for maintaining this awesome library, it's simple but very useful.
I have wrapped my in-development app in a strict mode and got the following warning:
This pull request replaces the deprecated lifecycle method. All tests pass, however, we get a linter warning which we might want to disable, as per discussion here: https://github.com/airbnb/javascript/issues/1875
Looking forward to your thoughts, I would love to get this fixed to be able to use the strict mode and in the future all the React performance goodies.
Thanks