-
-
Notifications
You must be signed in to change notification settings - Fork 407
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
named dynamic segments #382
Conversation
Very nice for a first RFC. I like the way this eliminates the need for always run model hook. You don't need to include the template questions, just the answers for each part. |
Thanks! I've deleted them. |
👍 Looks great. I'd definitely like to be able to pass named params for dynamic segments. Couple questions:
(PS, I don't think you want to delete the template file, you might want to revert that) |
We could from a technical perspective, but we would need a new If we want to introduce However the current design of this RFC allows it totally to have a future RFC adding this functionality again if we really need it. Especially this is important:
This means we have the possibility to extend the API to take Objects in any way we wont without breaking anything using this RFC. As long we don't change functionality using primitive datatypes.
I don't think it should. #339 is the path forward in my opinion. However I'l willing to reconsider if your opinion has larger support. Currently I hope keeping this RFC very lean will allow it to merge sooner and easier to implement. However I also hope that it will be a foundation for good and consistent addons that we later can make standard with additional RFCs. |
I'm not clear on why...currently you can pass either params or a model to I guess I'm missing why changing the API signature from positional arguments to named arguments forces a change in the underlying architecture. |
@bendemboski the current architecture maps transitionTo('post.comment', { dynamicSegments: { blog, comment } }); With this routes: this.route('post', { path: 'post/:post_id' }, function() {
this.route('comment', { path: 'comment/:comment_id' });
}); I wont be able to know which model to pass to the Don't get me wrong - its totally possible to extend the |
Given the inactivity here I'm going to go ahead and close this. I apologize for the fact that this stagnated and if you would still like to try to move this forward, let me know and I'll ensure that it gets a proper review. It's also worth noting that there is some new exploratory work being done around the router for Polaris. That may end up addressing this. |
Rendered