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
hydration problem when server side content has '\r' in it, when origin text is "a \r\n\r\n b \r\n\r\n c"
Client: " a \n\n b \n\n c"
Server: " a \r\n\r\n b \r\n\r\n c"
router priority
The priority of static router should be higher than the dynamic route. There are more complex issues when the parameters in the route are more complex in the route.
Like the example in https://stackblitz.com/edit/github-f5czk5
Example:
├─[p1]-[p2]-page
├─p-[p1]-page
├─p-p-[p1]-page
When i visit p-p-p2-page, i will not go to the p-p-[p1]-page but p-[p1]-page.
This may not be a bug, but there needs to be a mechanism to prioritize auto-generated links, and with complex routing, there are more of these issues.
the issue i made several days ago #18938
After update into new version
Two of the router
├─parent/page
├─parent-page
will create same router name and return a warning.
WARN [nuxt] Route name generated for/parent/page.vue is the same as /pages/parent-page.vue. You may wish to set a custom name using definePageMeta within the page file.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
For the third comment, this is now desired behaviour. As suggested in the log, you should define a name within definePageMeta, as Nuxt does not have enough information to decide which one should be named parent-page.
(One comment - in future, I suggest creating individual issues as this is more helpful to maintainers - issues may have separate causes and fixes.)
Environment
Linux
v16.14.2
3.2.2
2.2.3
npm@7.17.0
vite
-
-
-
Reproduction
https://stackblitz.com/edit/github-f5czk5
Describe the bug
The priority of static router should be higher than the dynamic route. There are more complex issues when the parameters in the route are more complex in the route.
Like the example in https://stackblitz.com/edit/github-f5czk5
Example:
When i visit
p-p-p2-page
, i will not go to thep-p-[p1]-page
butp-[p1]-page
.This may not be a bug, but there needs to be a mechanism to prioritize auto-generated links, and with complex routing, there are more of these issues.
After update into new version
Two of the router
will create same router name and return a warning.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: