Closed Entkenntnis closed 5 years ago
@flexdinesh When will you merge this? Need this feature 😊
@pgegenfurtner I haven't gotten to this yet. But I will definitely get this done this week. Should be available from npm next week I promise :)
Gotta run a few tests against hooks and see how it's fairing and will release it as a new version.
This is a breaking change. Will have to upgrade peer dependency to a React version that supports hooks and should do a major version bump. I'll get this done this week.
Changes released with v2.0.0
. Thank you!
Sometimes it's useful to access context variables directly, e.g. if you want to write your own logic (in conjunction with react-socks).
Implementing it with react hooks is quite straight forward, here is a PR.