We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aac9a84 commit 2e0e797Copy full SHA for 2e0e797
src/lazy-component.ts
@@ -2,7 +2,7 @@ import Lazy from './lazy'
2
import {
3
defineComponent,
4
onMounted,
5
- onUnmounted,
+ onBeforeUnmount,
6
ref,
7
reactive,
8
computed,
@@ -47,8 +47,8 @@ export default (lazy: Lazy) => {
47
lazy.addLazyBox(vm.value)
48
lazy.lazyLoadHandler()
49
})
50
-
51
- onUnmounted(() => {
+
+ onBeforeUnmount(() => {
52
lazy.removeComponent(vm.value)
53
54
@@ -61,4 +61,4 @@ export default (lazy: Lazy) => {
61
)
62
}
63
64
-}
+}
0 commit comments