We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86fb6bd commit ff2d52fCopy full SHA for ff2d52f
src/v3/apiWatch.ts
@@ -221,7 +221,7 @@ function doWatch(
221
} else if (isFunction(source)) {
222
if (cb) {
223
// getter with cb
224
- getter = () => call(source as Function, WATCHER_GETTER)
+ getter = () => call(source, WATCHER_GETTER)
225
} else {
226
// no cb -> simple effect
227
getter = () => {
@@ -231,7 +231,7 @@ function doWatch(
231
if (cleanup) {
232
cleanup()
233
}
234
- return call(source as Function, WATCHER, [onCleanup])
+ return call(source, WATCHER, [onCleanup])
235
236
237
0 commit comments