Closed
Description
Version
Vue-router 2.7.0
Vue 2.4.4
Reproduction link
https://codesandbox.io/s/5zyw568ojk
Steps to reproduce
- create route
- add in component property, arrow func with object
() => ({
component: import('./components/Calendar/Calendar.vue'),
loading: PageLoader,
})
- change network speed in devtools
What is expected?
I expect to see my component loader while the async component is loading
What is actually happening?
The loading component is not shown and the route is not changed until the async component loads.
Comments
https://vuejs.org/v2/guide/components.html#Advanced-Async-Components
Metadata
Metadata
Assignees
Labels
No labels