react-with-direction
react-with-direction copied to clipboard
Legacy context usage prints warnings in React StrictMode
I noticed when using rheostat that this project is printing warnings in React StrictMode because it's using the legacy React Context instead of the one released in React 16.3. I understand this library would like to continue supporting React <16.3, but it also prevents using concurrent mode when that is eventually released into stable.
What is the long term strategy for releasing this library? Should there be a new major version/forked library which supports React 16.3+? Is it possible to feature-detect the new Context API and use that if it's available?
If it's possible, a PR would be very welcome - otherwise it would require a breaking change.
It seems like such a thing is possible with this library -- https://github.com/jamiebuilds/create-react-context (or the smaller https://github.com/StringEpsilon/mini-create-react-context). I found it because some other libraries like react-router use it to support both React 15 and 16+.
I'm facing the similar issue while using it, it may due to "withDirectionPropTypes", it should fix with Context API