Skip to content

Commit d84332e

Browse files
fixes throttle issue (#3737)
1 parent df2ace4 commit d84332e

File tree

1 file changed

+2
-1
lines changed
  • packages/app/src/app/overmind/effects/live

1 file changed

+2
-1
lines changed

packages/app/src/app/overmind/effects/live/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ class Live {
104104
if (!this.awaitSend) {
105105
return Promise.resolve();
106106
}
107+
clearTimeout(this.awaitSendTimer);
107108
const awaitSend = this.awaitSend;
108109
this.awaitSend = null;
109110
awaitSend.resolve();
@@ -335,7 +336,7 @@ class Live {
335336
*/
336337
if (this.isLiveBlockerExperiement() && this.awaitSend) {
337338
this.resolveAwaitSend();
338-
this.awaitSynchronizedModule(module.shortid);
339+
await this.awaitSynchronizedModule(module.shortid);
339340
this.setAwaitSend();
340341
}
341342
// Send the save message

0 commit comments

Comments
 (0)