-
-
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
Add support for [email protected] #3515
Comments
I don't think we can (easily) or should try to do this in a backward-compatible way BTW. |
Then maybe it should ship with react-router 3.0.0? |
Delaying 3.0.0 release to include history@3 would make sense. Otherwise you'd have multiple major releases in relatively short time span.
|
Ideally yeah. The user-facing API shouldn't change too much in any case. |
The biggest change is the |
Not sure about that – in the v2 history change there was actually a discrete visible API change to the user whenever custom histories were involved (the mandatory user-called For going to v3, the user-facing API shouldn't change in most cases – the user only needs to upgrade both libraries. |
Guys, Thanks |
Apparently the next version isn't going to use Closing this in light of that news. |
Huh? Is that a good idea? |
I have no idea. No one was informed they were going off to do their own thing. That seems counter to the opening statements of #3289, but whatever... |
Hmm, I do think the API boundary between React Router and history has room for improvement, and the current situation is actually fairly confusing for users – see this issue and issues w/using e.g. I do think it's useful to decouple history management from the router somewhat, but the current library pattern does have fixable flaws. Looking forward to seeing it! |
Sure, I'm just whining about not being included in the cool kids club. 😄 I'm also for some further clarification because of confusion surrounding router state not being available in |
Just thinking about this a little, if I were doing a rewrite of history state management, I would:
Hmm... if this rewrite gets stalled, I might actually try to move things in that direction. |
Number 2 and 3 are pretty close to what Ryan and Michael are working on (Ryan showed me what they have so far on Friday). I don't think anything is going to stall, since they're pretty excited about it (I am too!). They'll loop us in soon. |
Sure – I'd say that once you factor out a location provider component, then that component really should use history or a similar abstraction if practical. |
Oh yeah, it still does use |
@gaearon recommended that we cut a v3 release with a relative small changeset ahead of the pending rewrite to give users a path forward, with improvements from v2. I'm re-opening this issue and adding it to the v3 milestone. This is blocked on remix-run/history#316, and also on the question of how to handle getting the initial location – i.e. should we do a cc @mjackson |
So let me repeat my question: As |
No, the |
:( |
There is no plan right now to make leave hooks async. If you want more complex confirmation behavior, take a look at extending the behavior of history's navigation confirmation hooks to better work with custom confirmation dialogs. |
Folded into #3611. |
Related to reactjs/react-router-redux#385.
The text was updated successfully, but these errors were encountered: