Skip to content

Commit 0b8a819

Browse files
committed
tbc
1 parent b237ac9 commit 0b8a819

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

tea-cup/src/TeaCup/Program.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,26 +94,26 @@ export class Program<Model, Msg> extends Component<ProgramProps<Model, Msg>, nev
9494
// perform commands in a separate timout, to
9595
// make sure that this dispatch is done
9696
const cmd = updated[1];
97-
if (!(cmd instanceof CmdNone)) {
97+
// if (!(cmd instanceof CmdNone)) {
9898
setTimeout(() => {
9999
// console.log("dispatch: processing commands");
100100
// debug("performing command", updated[1]);
101101
updated[1].execute(d);
102102
// debug("<<< done");
103103
}, 0);
104-
}
104+
// }
105105

106-
const needsUpdate = this.currentModel === updated[0];
106+
// const needsUpdate = this.currentModel === updated[0];
107107

108108
this.currentModel = updated[0];
109109
this.currentSub = newSub;
110110

111111
// trigger rendering
112-
console.log('render')
113-
if (needsUpdate) {
114-
console.log('render update')
112+
// console.log('render')
113+
// if (needsUpdate) {
114+
// console.log('render update')
115115
this.forceUpdate();
116-
}
116+
// }
117117
}
118118
}
119119

0 commit comments

Comments
 (0)