-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[3.0] Put params
, location
, and route
on context.router
#3325
Comments
We want to be careful about what we mean by Otherwise it probably makes sense to put these on the context. |
That |
"the |
Makes sense to me. @timdorr, you'll want to add a caveat in React Router Redux that this won't match whatever location ends up in the Redux store (err, does React Router Redux still have an option to do that?). |
Looking at the code, this will be a lot simpler after 3.0. Not that it's hard, it's just that where we provide context is pretty messy from all the deprecations. Maybe we should just ship this w/ 3.0 when we can clean all that stuff up. May 9th is when we can release 3.0, so maybe let's figure out everything we want for the next minor release, release it, and then make a 3.0 branch to start removing deprecations and such (use a branch so that we can do some bug fixe releases from master if we need to). |
params
, location
, and route
on context.router
params
, location
, and route
on context.router
What do we think of putting |
Since we're doing that via |
We’ll be putting |
I think we defer that until we do relative links... they just come together really naturally. |
Whoops, forgot about 'route' (and Dre...) |
We can track this in a separate issue since it’s implemented separately and after 3.0? |
It'd be really great if we could get relative links in 3.0... just a question of time. Ideally they'd be part of core rather than an add-on, which would be a breaking change (but one that wouldn't break much). |
Can we track the remaining bit on the "relative |
Any chance this a concrete goal for 3.0? Having to wrap my routed components with |
This is all on |
I don't think I see I could take a stab at it if you'd take a PR. |
Sounds reasonable to me, but you'll need one more person to approve the change. |
We want to bring |
My thoughts exactly. Sounds like that's the requisite 2 votes, then. |
👍 from me so we have something "in-house" |
Yeah the original justification is that we didn't want |
I'm closing this for now, given that the work to put |
These are all really useful deep in the tree, especially when building links. Instead of asking folks to take them from their route components and put them on context there, we should probably just do it.
Thoughts?
The text was updated successfully, but these errors were encountered: