-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Router is shaping well. I have few suggestions.
- RouteGroup should have default route RouteGroup('/home').
- Rename Route.().comp to Route().view.
- Route should have a title property for setting page title. Route().title('Page title').
- navigator.to should have a param and replace option https://router.vuejs.org/guide/essentials/navigation.html
- navigator.to() should return a promise.
- We don't need a Link view. a() element shoould be used for navigation. a() element should have an activeClass property that should be applied when the link is active.https://router.vuejs.org/api/interfaces/RouterLinkProps.html#activeClass
- In component hooks are missing. https://router.vuejs.org/guide/advanced/navigation-guards.html#In-Component-Guards
- Link option like Svelte https://kit.svelte.dev/docs/link-options
- View transitions like SvelteKit https://svelte.dev/blog/view-transitions
Relevant discussion on Discord https://discord.com/channels/1119854252907561000/1205815916194045992/1210500026854285322
Metadata
Metadata
Assignees
Labels
No labels