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
WIP: feat: new routing system to allow multiple route params #5911
Conversation
We may need to clean the |
@Atinux |
But this is a breaking change. I mean application done with previous Nuxt.js versions will need to be re-written. |
Being configurable and defined the default with |
@begueradj actually it will still work with I don't think it's a good idea to make it configurable since it starts becoming a standard. The only breaking change is that if someone has a |
Codecov Report
@@ Coverage Diff @@
## next #5911 +/- ##
==========================================
- Coverage 95.72% 95.69% -0.04%
==========================================
Files 82 82
Lines 2689 2693 +4
Branches 690 692 +2
==========================================
+ Hits 2574 2577 +3
- Misses 97 98 +1
Partials 18 18
Continue to review full report at Codecov.
|
Awesome! Did you guys ever considered support Passing Props to Route Components? I don't know how many guys using this feature, but support this feature not a bad idea to nuxt, huh?🤔 |
You can add this feature by using We are going to move to |
Yes! But I want to mean is: Create a file {
path: '/:id',
props: true,
...
} by nuxt routing system. Of course advanced route config will still using |
@evillt for this I recommend to use the router-extras-module to active such options :) |
@Atinux Sure! |
Finally, since |
Types of changes
The breaking change only affects users that have a
$
in the files insidepages/
(should not exists but we never know).Description
The idea is to replace the
pages/_dynamic.vue
topages/$dynamic.vue
.Main advantage, usage of params:
pages/author-$username.vue
)pages/product-$sku-$variant.vue
)I also added a warning for easier migration.
This change is planned for Nuxt 3.
Checklist: