mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-25 00:25:03 +08:00
Deferring dispatch lastResult is formally correct but actually slow
This commit is contained in:
parent
11579546a2
commit
43118d78be
1 changed files with 1 additions and 4 deletions
|
@ -46,10 +46,7 @@ export default class QuerySubscription {
|
|||
this._callbacks.push(callback);
|
||||
|
||||
if (this._lastResult) {
|
||||
setTimeout(() => {
|
||||
if (!this._lastResult) { return; }
|
||||
callback(this._lastResult);
|
||||
}, 0);
|
||||
callback(this._lastResult);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue