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

Routing tab does not display a list of routes added via addRoutes #917

Open
maxim-usikov opened this issue Mar 26, 2019 · 5 comments
Open

Comments

@maxim-usikov
Copy link

maxim-usikov commented Mar 26, 2019

Version

5.0.1

Browser and OS info

Chrome 72.0.3626.121 / macOS Mojave 10.14.3

Steps to reproduce

codesandbox.io

What is expected?

List of all routes in Routing tab (init routes and addRoutes())

What is actually happening?

List of routes added during initialization in option routes, without addRoutes()


Routing

@maxim-usikov maxim-usikov changed the title Router tab does not display a list of routes added via the addRoutes Router tab does not display a list of routes added via addRoutes Mar 26, 2019
@maxim-usikov maxim-usikov changed the title Router tab does not display a list of routes added via addRoutes Routing tab does not display a list of routes added via addRoutes Mar 26, 2019
@maxim-usikov
Copy link
Author

@Akryum I gues now it's not possible to implement? Because no way to see routes added via addRoutes().

Related issues:
vuejs/vue-router#1234
vuejs/vue-router#1859
vuejs/vue-router#1955
vuejs/vue-router#2454
vuejs/vue-router#2280

https://github.com/vuejs/vue-router/blob/dev/src/index.js#L210

@Akryum
Copy link
Member

Akryum commented Mar 26, 2019

@posva Any insight on this?

@posva
Copy link
Member

posva commented Mar 26, 2019

For the moment this is not possible. It's part of the dynamic routing. We will have to add a way to let devtools track them. We could do a temporal fix where dynamic routes are added to a private property in vue-router so devtools can show them

@kingyue737
Copy link

We could do a temporal fix where dynamic routes are added to a private property in vue-router so devtools can show them

Does v5 have this fix? I'm using the latest devtools, but dynamic routes are not shown.

@palashbhowmick
Copy link

Our entire project works on adding routes via addRoutes. It isn't easy to debug without the support of debug tool.
The only way to see newly added routes is to call router.getRoutes().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants