Skip to content

Commit

Permalink
fix: after some time, there may be an unexpected increase in CPU usage
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiteMinds committed Jul 30, 2023
1 parent 493e293 commit fbf96ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/manager/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export function asyncThrottle(
savingPromise = fn().finally(() => {
savingPromise = null
if (hasDeferred) {
hasDeferred = false
if (opts.immediateRunWhenEndOfDefer) {
wrappedWithAllowDefer()
} else {
Expand Down

0 comments on commit fbf96ff

Please sign in to comment.