Expose LocationContext#201
Conversation
|
@ryanflorence This would make my life easier now when hooks are out. |
|
I suspect, if you're going to make this part of the public API, then a test will be needed to guarantee it's existence without accidental breakages. Without any tests, you will probably have little luck in getting this merged. |
|
https://reacttraining.com/blog/reach-react-router-future/ Not going to expose context, but useLocation is coming shortly. Thanks! |
It looks like react-router what we should be using, which at the time of writing is version 5 according to the roadmap is 5.1. |
Exposes
LocationContext, so it may be used withstatic contextType(anduseContextwhen it lands). May need an explanation in the docs as<Location>automatically wraps itself in a<LocationProvider>when needed, which this won't do.