temp fix for now-unused resettable async component

This commit is contained in:
Henry Jameson 2021-04-25 14:51:15 +03:00
parent b6e8c12dbc
commit 8a9115b58e
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
import Vue from 'vue'
// TODO investigate if even necessary since VUE3
import { reactive } from 'vue'
/* By default async components don't have any way to recover, if component is
* failed, it is failed forever. This helper tries to remedy that by recreating
@ -13,7 +14,7 @@ function getResettableAsyncComponent (asyncComponent, options) {
...options
})
const observe = Vue.observable({ c: asyncComponentFactory() })
const observe = reactive({ c: asyncComponentFactory() })
return {
functional: true,