Skip to content

Commit

Permalink
实现 watchEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
jindy committed Oct 12, 2022
1 parent 9ec93c1 commit 8f7659e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/runtime-core/src/scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function flushPrevFlushCbs() {
}
}

export function queuePreFlushCb(cb) {
activePreFlushCbs.push(cb);
export function queuePreFlushCb(job) {
activePreFlushCbs.push(job);
queueFlush();
}

0 comments on commit 8f7659e

Please sign in to comment.