You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Intent to RFC: make the default router dynamic segments camelCase. #556
Today, the default dynamic route segments are :snake_case. This is a ruby/rails-ism.
In JS, we use camelCase and today, using :camelCase works.
Additionally, there are conflicting lint rules:
model({ post_id }) will error because post_id is not camelCase. eslint: camelcase
but this.route('show', { path: ':postId' }) will error because the param is not snake_case. ember/routes-segments-snake-case
We don't really need implicit model finding (lib/system/route#findModel), as we haven't been teaching that for a while.
It implies we have a store service, which not all ember-apps do.
Reacted by Will Viles, Alex Kanunnikov, Gregory M Kohler, Kevin Pfefferle, Thomas Gossmann, Ruslan Hrabovyi, Jon Johnson, Ilya Radchenko, Thomas Wang, Laura Murphy-Clarkin and 12 more
I'm closing this due to inactivity. This doesn't mean that the idea presented here is invalid, but that, unfortunately, nobody has taken the effort to spearhead it and bring it to completion. Please feel free to advocate for it if you believe that this is still worth pursuing. Thanks!
Closing the ticket doesn’t mean we shouldn’t do it, just that, as it is, there’s no path forward for it. In other words, no one has or is putting in the work to make it happen. In practice, that means it’s not going to happen and, unfortunately, the tickets just end up adding more clutter.
Activity
HeroicEric commentedon Nov 26, 2019
Related ember-cli/eslint-plugin-ember#410
NullVoxPopuli commentedon Nov 27, 2019
Deprecation of Implicit Record Loading: #557
wagenet commentedon Jul 23, 2022
I'm closing this due to inactivity. This doesn't mean that the idea presented here is invalid, but that, unfortunately, nobody has taken the effort to spearhead it and bring it to completion. Please feel free to advocate for it if you believe that this is still worth pursuing. Thanks!
NullVoxPopuli commentedon Jul 23, 2022
I think we should still do this -- and ember-cli/eslint-plugin-ember#410 still open.
snake_case is just weird in JS
wagenet commentedon Jul 23, 2022
Closing the ticket doesn’t mean we shouldn’t do it, just that, as it is, there’s no path forward for it. In other words, no one has or is putting in the work to make it happen. In practice, that means it’s not going to happen and, unfortunately, the tickets just end up adding more clutter.