Skip to content

Commit 233e297

Browse files
author
takumi-n
committed
fix: set default lazy option to true in watch api
1 parent 7c8386e commit 233e297

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/apis/watch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ export function watch(
291291
callback = null;
292292
}
293293

294-
const opts = getWatcherOption(options);
294+
const opts = getWatcherOption({ lazy: true, ...options });
295295
const vm = getWatcherVM();
296296

297297
return createWatcher(vm, source, callback, opts);

0 commit comments

Comments
 (0)