Skip to content

Commit

Permalink
fix: setState 后,callback 队列没有清空 (#1451)
Browse files Browse the repository at this point in the history
  • Loading branch information
zengyue authored Apr 21, 2022
1 parent d5ac1bc commit 50803e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/f2/src/base/updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ function createUpdater(canvas) {

// 清空
renderQueue.length = 0;
callbackQueue.length = 0;
}

function enqueueSetState(component, state, callback?: () => void) {
Expand Down

0 comments on commit 50803e4

Please sign in to comment.