@vue/composition-api
Advanced tools
Changelog
0.6.0
Great thanks to @pikax for #311, making most of the APIs better aligned with the latest vue-next.
lazy
option of watch
has been replaced by the opposite immediate
option, which defaults to false. (It's ignored when using the effect signature). more details (#266)nonReactive
to markRaw
watchEffect
now follows the same behaviour as v3 (triggers immediately).UnwrapRef
types from vue-next
this can cause some incompatibilities.toRefs
, #315unref
(#309), isReactive
(#327), toRef
(#313), UnwrapRef
(#247)shallowReactive
, shallowRef
toRaw
getCurrentInstance
available on the lifecycle hooks (onMounted
, etc)getCurrentInstance
returns undefined
when called outside setup instead of throwing exceptionvue-next
Changelog
0.4.0
createComponent
to defineComponent
(the createComponent
function is still there but deprecated) #230onUnmounted
should not be run on deactivated
#217Changelog
0.3.4
reactive
setter not working on the server.isServer
setup context property.