Skip to content
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

Vision/Roadmap #3289

Closed
2 of 4 tasks
mjackson opened this issue Apr 13, 2016 · 12 comments
Closed
2 of 4 tasks

Vision/Roadmap #3289

mjackson opened this issue Apr 13, 2016 · 12 comments

Comments

@mjackson
Copy link
Member

mjackson commented Apr 13, 2016

We need to be more effective at communicating our vision for the router. Hopefully we can do this constructively out in the open and get everyone's feedback. Also, I hope this document gives some guidance to people who've asked how they can help.

For now, here's a list of stuff that needs to happen, in no particular order:

As the discussion progresses, I'd like to expand this list, identify changes that we can make together and them into changesets with a release type (e.g. patch, minor, or major) so we can minimize upgrade pain.

Please keep comments short and to the point. Off-topic and excessively lengthy comments will be moderated.

@timdorr
Copy link
Member

timdorr commented Apr 13, 2016

Re: #3280, that was because of issues like #3279. #3285 has an additional fix for that case.

@taion
Copy link
Contributor

taion commented Apr 13, 2016

#3158 isn't supporting trailing slashes, it's dropping support for extra slashes. On 2.1.1, /foo/bar matches /foo////////bar//////. Among other problems, paths don't even have a "nearly canonical" form net of the trailing slash.

@taion
Copy link
Contributor

taion commented Apr 13, 2016

@timdorr
Copy link
Member

timdorr commented Apr 13, 2016

For the conditional stuff, what if the onEnter/onChange hooks had a 4th arg that was an error callback?

@taion
Copy link
Contributor

taion commented Apr 13, 2016

You can already call back with an error. The problem is that those errors can't be caught in a semantic way. Also, raising an error is not as rich as just falling through in routing. I really do think the API in #3098 is quite nice; it does exactly what's needed here.

@timdorr
Copy link
Member

timdorr commented Apr 13, 2016

I like that one too. Just brainstorming some other options in case there is something more palatable to those that don't like the extra prop.

@taion
Copy link
Contributor

taion commented Apr 14, 2016

I updated the OP to a checklist, and checked off the two things that we already resolved.

@timdorr
Copy link
Member

timdorr commented Apr 14, 2016

I'd like to merge @ryanflorence's applyMiddleware into core. No reason not to have it.

@ryanflorence
Copy link
Member

I'm making a tweak that @taion and I talked about last night before I make a pull request, it further simplifies creating middleware components.

@taion
Copy link
Contributor

taion commented May 5, 2016

We have two scroll management middlewares now: https://github.com/ryanflorence/react-router-restore-scroll, https://github.com/taion/react-router-scroll. Naturally, I like mine more, but we should probably have one with the union of the feature set :p

@taion
Copy link
Contributor

taion commented Jul 5, 2016

I'm going to fold this into an updated meta issue for the upcoming 3.x release, intended as a minor update to the 2.x API.

@taion taion closed this as completed Jul 5, 2016
@taion
Copy link
Contributor

taion commented Jul 5, 2016

Tracking concrete goals and maybe-goals for v3.0.0 on #3611.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants