Skip to content

Commit

Permalink
Added updateDOM helper
Browse files Browse the repository at this point in the history
  • Loading branch information
CMEONE committed Mar 18, 2021
1 parent e1ba280 commit b0b7f65
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class tApp {
static currentHash = "/";
static debugComponentTiming;
static get version() {
return "v0.10.5";
return "v0.10.6";
}
static configure(params) {
if(params == null) {
Expand Down Expand Up @@ -425,6 +425,9 @@ class tApp {
return true;
}
}
static updateDOM() {
tApp.updateComponent(tApp.GlobalComponent);
}
static updateComponent(component) {
let updateStartTime;
if(tApp.debugComponentTiming != null && component.id == "global") {
Expand Down Expand Up @@ -1121,7 +1124,7 @@ tApp.Component = class {
return state;
}
this.state = recursivelySetState(key, val, this.state);
tApp.updateComponent(tApp.GlobalComponent);
tApp.updateDOM();
return val;
}
render(props) {
Expand Down

0 comments on commit b0b7f65

Please sign in to comment.