Compatibility
Vue Composition API (core) | Status |
---|---|
ref() | ✅️ |
reactive() | ✅️ |
computed() | ✅️ |
readonly() | ✅️ |
watchEffect() | ✅️ |
watchPostEffect() | ✅️ |
watchSyncEffect() | ✅️ |
watch() | ✅️ |
Vue Composition API (Advanced) | Status |
---|---|
shallowRef() | ✅️ |
triggerRef() | ✅️ |
customRef() | ✅️ |
shallowReactive() | ✅️ |
shallowReadonly() | ✅️ |
toRaw() | ✅️ |
markRaw() | ✅️ |
effectScope() | ✅️ |
getCurrentScope() | ✅️ |
onScopeDispose() | ✅️ |
Vue Composition API (Utilities) | Status |
---|---|
isRef() | ✅️ |
unref() | ✅️ |
toRef() | ✅️ |
toValue() | ✅️ |
toRefs() | ✅️ |
toRaw() | ✅️ |
isProxy() | ✅️ |
isReactive() | ✅️ |
isReadonly() | ✅️ |
Vue Composition API (Lifecycle Hooks) | Status |
---|---|
onMounted() | ✅️ |
onUpdated() | ✅️ |
onUnmounted() | ✅️ |
onBeforeMount() | ✅️ |
onBeforeUpdate() | ✅️ |
onBeforeUnmount() | ✅️ |
onErrorCaptured() | ❌️ |
onRenderTracked() | ❌️ |
onRenderTriggered() | ❌️ |
onActivated() | ❌️ |
onDeactivated() | ❌️ |
onServerPrefetch() | ❌️ |
Vue Composition API (Lifecycle Hooks) | Status |
---|---|
provide() | ✅️ |
inject() | ✅️ |
hasInjectionContext() | ✅️ |