query compat with vue-routers `LocationObject`
See original GitHub issueHey 👋🏻
Right now, query methods, mainly withQuery
, is not compatible with vue-routers LocationQuery
.
vue-router:
type LocationQueryValue = string | null;
type LocationQuery = Record<string, LocationQueryValue | LocationQueryValue[]>;
ufo:
type QueryValue = string | string[] | undefined;
type QueryObject = Record<string, QueryValue>;
Issue Analytics
- State:
- Created 10 months ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Vue Router and the Composition API
The introduction of setup and Vue's Composition API, open up new possibilities but to be able to get the full potential out of...
Read more >Query parser doesn't support nested objects #1268
In your vue-router enabled vue app, push a nested object as the router query. For example, take the following statement:.
Read more >How to Use Vue Router: A Complete Tutorial
The first route object has a path / which means this is going to be our base URL. The component property represents what...
Read more >Vue-Router: Globally Add Query Value to Routes
router.beforeEach((to, from, next) => { if (!to.query.
Read more >Vue Router Tutorial
The Vue Router · Introduction · Installation · The router object · Defining the routes · Using named routes to pass parameters to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Absolutely, but it felt like a low-hanging fruit 😋
Sadly does not look like.
Thank you! 😋