Feedback: Docs are hard to use #2068
Replies: 4 comments 8 replies
-
Thanks for the feedback. This is really useful to me! I have planned to rewrite the Router docs for years. Take a different path to teach the routing concepts, in an order that makes sense when building an application, move to script setup by default, use composition API by default, add cookbook entries, etc. But I've never found the time to actually do it... The truth is that I barely have any companies sponsoring my work (which is far from being limited to Vue Router), yet the router by itself is already a crucial part of Vue applications. And I have been maintaining it for 5 years but I don't think I have done a good job of finding companies to sponsor me. I'm pinning this issue to gather more feedback and to share and discuss renewed organizations of the Router documentation. |
Beta Was this translation helpful? Give feedback.
-
Another one: it took me weeks, until this very moment, to realize that Nested Routes are the best way to implement common layouts. I looked first for references to layouts, templates, something like that, and couldn't find it. So I came up with a complex different way of managing layouts, but which reset the entire layout state on page nav (notably, removing all notification messages). A page that outlines common tasks (like using layouts) and just a few sentences about how to do each would have been really helpful here. |
Beta Was this translation helpful? Give feedback.
-
I'm struggling from the very first page, "Getting Started". It starts with an example of using the router on an HTML page and mentions components called This is a very poor experience for beginners. At this point I was immediately discouraged from continuing to read this documentation any further and resorted to finding a third-party tutorial instead - this one, which wasn't the most attractive to look at but did lay out everything step by step in a way that made sense to describe as "getting started". |
Beta Was this translation helpful? Give feedback.
-
I'm going tho throw in here other ideas when I found them:
|
Beta Was this translation helpful? Give feedback.
-
I'm starting with Vue Router and having a hard time finding what I need. In this post, I'll try to document all the things I've tried to look up and how I've done that. I'm sure I'm not the only one with these issues, so hopefully fixing them will help others. No need to answer any of these questions, this is purely user feedback on the docs that I hope can inform improvements to the docs to make it easier for others.
.push
to be LocationQueryRaw (though I also found one that just said it's a string? Confusing!).RouteLocationNamedRaw
, but that isn't linked, so I have to do a search to find it... Except there's no other results forRouteLocationNamedRaw
!! How do I figure this out?? Totally blocked now.useRoute().query.key
? There's no examples. And opening the return type for query, https://router.vuejs.org/api/#LocationQuery, just has technical details that I'm not 100% confident I understand. I guess I'll just test it?Beta Was this translation helpful? Give feedback.
All reactions