React-dates: New Warning with last version 18.2.1

Created on 7 Nov 2018  路  7Comments  路  Source: airbnb/react-dates

When I use your last DateRangePicker, I see in console this:
DateRangePicker has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used. - react-dom.development.js:506

on every kind of interaction. I'm using last version of React and React-dom (16.6.1)

bug

Most helpful comment

Ah I'm pretty sure this is due to the change I shipped yesterday. I will amend the babel transform to conditionally insert the shouldComponentUpdate. Thanks for letting me know! v18.2.0 should be fine.

All 7 comments

Ah I'm pretty sure this is due to the change I shipped yesterday. I will amend the babel transform to conditionally insert the shouldComponentUpdate. Thanks for letting me know! v18.2.0 should be fine.

This is also happening with SingleDatePicker as well.

Any updates on this?

Just put a fix up! :) I'll merge and republish once I verify it and tests pass.

Doing a release now!

18.2.2 is out!

Thanks!

Was this page helpful?
0 / 5 - 0 ratings