Loading...
Loading...
Compare original and translation side by side
@vueuse/shared@vueuse/shareduseThrottleFncreateSharedComposablerefManualResetreset()watchAtMostpauseresumecounttryOnScopeDisposefailSilentlyuseArrayReduceUseArrayReduceReturncomputedWithControlcomputedEagercomputedwatchPausablewatchpausableFilterignorableWatchwatchIgnorableeagerComputedcomputedEagercontrolledComputedcomputedWithControlcreateReactiveFnautoResetRefdebouncedRefuseDebouncethrottledRefuseThrottlecontrolledRefdebouncedWatchignorableWatchpausableWatchthrottledWatchuseThrottleFnuseThrottleFncreateSharedComposablerefManualResetreset()watchAtMostpauseresumecounttryOnScopeDisposefailSilentlyuseArrayReduceUseArrayReduceReturncomputedWithControlcomputedEagercomputedwatchPausablewatchpausableFilterignorableWatchwatchIgnorableeagerComputedcomputedEagercontrolledComputedcomputedWithControlcreateReactiveFnautoResetRefdebouncedRefuseDebouncethrottledRefuseThrottlecontrolledRefdebouncedWatchignorableWatchpausableWatchthrottledWatchcomputed()computedEager()createSharedComposable()provideLocal()injectLocal()until()// Preferred for one-time triggers
await until(isReady).toBe(true)
doSomething()refManualReset().reset()reactify()ComputedRefrefWithControl()peek()lay()makeDestructurable()syncRef()transformltrrtl// Sync a number ref with a string ref
syncRef(count, stringCount, {
transform: {
ltr: left => String(left),
rtl: right => Number(right)
}
})createGlobalState()computed()computedEager()createSharedComposable()provideLocal()injectLocal()until()// 推荐用于一次性触发场景
await until(isReady).toBe(true)
doSomething()refManualReset().reset()reactify()ComputedRefrefWithControl()peek()lay()makeDestructurable()syncRef()transformltrrtl// 同步数字类型ref与字符串类型ref
syncRef(count, stringCount, {
transform: {
ltr: left => String(left),
rtl: right => Number(right)
}
})createGlobalState()