Skip to content

Commit 1cce077

Browse files
committed
Fix ignoring next update in sse sync
1 parent 0b7c58e commit 1cce077

File tree

1 file changed

+1
-1
lines changed
  • packages/app/src/app/components/Preview

1 file changed

+1
-1
lines changed

packages/app/src/app/components/Preview/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,8 +572,8 @@ class BasePreview extends React.Component<Props, State> {
572572
const ignoreUpdate = this.lastSent.ignoreNextUpdate;
573573
if (!ignoreUpdate && Object.keys(diff).length > 0 && this.$socket) {
574574
this.$socket.emit('sandbox:update', diff);
575-
this.lastSent.ignoreNextUpdate = false;
576575
}
576+
this.lastSent.ignoreNextUpdate = false;
577577
} else {
578578
dispatch({
579579
type: 'compile',

0 commit comments

Comments
 (0)