Skip to content

wevu / index / watch

函数: watch()

watch<T>(source, cb, options): WatchStopHandle

定义于: packages/wevu/src/reactivity/watch.ts:25

类型参数

T

T

参数

source

WatchSource<T>

cb

(value, oldValue, onCleanup) => void

options

WatchOptions = {}

返回

WatchStopHandle

Released under the MIT License.