jquense / react-widgets

Polished, feature rich, accessible form inputs built with React
http://jquense.github.io/react-widgets/
MIT License
2.34k stars 395 forks source link

Warning: Legacy context API has been detected within a strict-mode tree. #1063

Closed scarow closed 3 years ago

scarow commented 3 years ago

I'm getting this legacy context API warning while trying to use the DateTimePicker.

Warning: Legacy context API has been detected within a strict-mode tree.

The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.

Please update the following components: Widget

Learn more about this warning here: https://fb.me/react-legacy-context
    in Widget (created by DateTimePicker)
    in DateTimePicker (created by Uncontrolled(DateTimePicker))
    in Uncontrolled(DateTimePicker) (at uncontrollable.js:128)

Support for this deprecated API will be removed during the next major react upgrade (all versions above 16.x). Are there plans to resolve this?

jquense commented 3 years ago

it wasn't removed in react 17 so we are safe for while, the next major version of RW will have this fixed, (coming soon)

scarow commented 3 years ago

Thank you!