-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
3.2.0-beta.2: Follow up on #4148 #4157
Comments
Also reproducible with a much simpler version similar to #4148 (comment) import { h } from 'vue';
import { createRouter, createWebHistory, RouteRecordRaw, RouterView } from 'vue-router';
const routes: RouteRecordRaw[] = [
{
path: '/',
component: { render: () => h(RouterView)},
children: [
{
name: 'a',
path: 'a/:id',
component: () => import('./ARoute.vue'),
},
{
name: 'b',
path: 'b',
component: { render: () => h('div', 'B content') },
},
]
},
];
export const router = createRouter({
history: createWebHistory(),
routes,
}) ARoute.vue <template>
<pre>{{ $route.params.id.toUpperCase() }}</pre>
</template> App.vue <template>
<nav class="flex pa4" style="gap: 30px">
<RouterLink :to="{ name: 'a', params: { id: 'test' } }">Go to A</RouterLink>
<RouterLink :to="{ name: 'b' }">Go to B</RouterLink>
</nav>
<RouterView />
</template>
I could reproduce this without Vue Router but I'm unsure if that usage of the computed makes sense. |
It seems the computed change introduces too many edge cases and is too risky so I reverted it to the old behavior :/ |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Version
3.2.0-beta.2
Reproduction link
https://github.com/AlexandreBonaventure/vue3.2-bug
(updated to use 3.2.0-beta.2)
Steps to reproduce
This issue is a follow-up on: #4148
Seems like the fix is not entirely comprehensive because I was able to reproduce with the new beta version by adding another route wrapper component
What is expected?
no errors
What is actually happening?
error
The text was updated successfully, but these errors were encountered: