Utilities from VueUse that work for @vue/reactivity
npm i @vue-reactivity/use
Functions are ported from VueUse and this repo only contains the automation script, check the code and made changes in VueUse.
asyncComputed
- like computed refsuseAsyncState
- reactive async stateuseDebounce
- debounce execution of a ref valueuseDebounceFn
- debounce execution of a functionuseRefHistory
- track the change history of a refuseThrottle
- throttle changing of a ref valueuseThrottleFn
- throttle execution of a functionbiSyncRef
- two-way refs synchronizationcontrolledComputed
- explicitly define the deps of computedextendRef
- add extra attributes to RefmakeDestructurable
- make isomorphic destructurable for object and array at the same timesyncRef
- keep target refs in sync with a source reftryOnMounted
- safeonMounted
tryOnUnmounted
- safeonUnmounted
when
- promised one-time watch for ref changes
MIT