You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I know there is no composable for vue wait but you can create one easily:
import{getCurrentInstance}from'vue'exportfunctionuseWait(){constinstance=getCurrentInstance()// If `getCurrentInstance` is called outside of a Vue component setup function, it will return `null`.if(!instance){thrownewError('useCore must be called within a Vue component setup function.')}// The `instance` object has a `proxy` property, which is the component's public instance.const{ proxy }=instance// `proxy.$wait` gives us access to the global `$wait` object provided by vue-wait returnproxy.$wait}
Is there any document for Vue3 Composition API?
The text was updated successfully, but these errors were encountered: