Skip to content

Commit

Permalink
add the redux subscribe on runtime level
Browse files Browse the repository at this point in the history
  • Loading branch information
foxriver76 committed Nov 27, 2023
1 parent 846ea8b commit 4855fc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,6 @@ class App extends Runtime {

async componentDidMount() {
super.componentDidMount();
store.subscribe(() => this.render);
window.addEventListener('keydown', this.onKeyDown, false);
window.addEventListener('beforeunload', this.onBeforeUnload, false);
}
Expand Down
2 changes: 2 additions & 0 deletions src/src/Runtime.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ class Runtime extends GenericApp {
componentDidMount() {
super.componentDidMount();

store.subscribe(() => this.render());

const newState = {
alert: false,
alertType: 'info',
Expand Down

0 comments on commit 4855fc7

Please sign in to comment.