router
router copied to clipboard
wip: vapor mode
Description
This PR provide two vapor components: VaporRouterView and VaporRouterLink.
I'm not sure whether we should provide a vue-router/vapor for users to make migration easier.
import { RouterView } from 'vue-router/vapor'
export default () => <RouterView />
This PR depends on those pull requests: https://github.com/vuejs/core/pull/13424 https://github.com/vuejs/core/pull/13360
Playground
https://repl.zmjs.dev/vuejs/vue-router
TODO
- [ ] Tests
- [ ] Playground
Deploy Preview for vue-router canceled.
| Name | Link |
|---|---|
| Latest commit | 02a3c5b98d15b6343b866249f4e50affeabfd4a8 |
| Latest deploy log | https://app.netlify.com/projects/vue-router/deploys/6870ba9b6c9d6000087019da |
Is this already compatible with ā3.6.0-alpha.1ā? Or is there still work required? Iād be happy to help if I can.
Is this already compatible with ā3.6.0-alpha.1ā? Or is there still work required? Iād be happy to help if I can.
You can try it in [email protected]
The automatic global registration of the virtual DOM RouterView and RouterLink components in the install hook should probably be removed so that they can be tree-shaken when an app is only using the Vapor ones.
FYI this is planned after #2415 which will also allow to register a custom RouterView and RouterLink