fix(watch): ignore lazy option in simple watch (#546)
* fix(watch): ignore lazy option in simple watch * test: ignore lazy option in simple watch
This commit is contained in:
@@ -197,7 +197,7 @@ function doWatch(
|
||||
scheduler: applyCb ? () => scheduler(applyCb) : scheduler
|
||||
})
|
||||
|
||||
if (!lazy) {
|
||||
if (!lazy || !cb) {
|
||||
if (applyCb) {
|
||||
scheduler(applyCb)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user