Skip to content
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

Vue devtools freezes pages. Stuck on 'normalizeRouterInfo' function. #606

Open
Pentadome opened this issue Sep 10, 2024 · 2 comments
Open
Labels
need reproduction Reproduction is needed

Comments

@Pentadome
Copy link

Devtools causes page to freeze on normalizeRouterInfo -> deepClone -> clone. The clone function keeps calling itself. Sadly I do not know how to reproduce this.

@webfansplz
Copy link
Member

Can you share the vue-router config or try to give a mini repo 🙏

@webfansplz webfansplz added the need reproduction Reproduction is needed label Sep 11, 2024
@Pentadome
Copy link
Author

like this?

setupLayouts is from vite-plugin-vue-layouts.

import { setupLayouts } from 'virtual:generated-layouts';

 const router = createRouter({
    scrollBehavior: () => ({ left: 0, top: 0 }),
    // see: https://uvr.esm.is/guide/extending-routes.html#extending-routes-at-runtime
    routes: setupLayouts(routes),
    history: createWebHistory(),
  });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need reproduction Reproduction is needed
Projects
None yet
Development

No branches or pull requests

2 participants