I recently converted to vue2.7 and vite.
I imported the existing router object and used it outside the component, but I can't use it anymore because of the circular reference problem. It would be nice to create a function that can be routed outside the component. like react-router
You need to solve your circular reference. It's simply not possible to create such API because it depends on the router instance created with new VueRouter().
What problem does this feature solve?
I recently converted to vue2.7 and vite. I imported the existing router object and used it outside the component, but I can't use it anymore because of the circular reference problem. It would be nice to create a function that can be routed outside the component. like react-router
What does the proposed API look like?