diff --git a/apps/remix-ide/src/app/editor/editor.js b/apps/remix-ide/src/app/editor/editor.js index 1bc0a00b82..3416af663c 100644 --- a/apps/remix-ide/src/app/editor/editor.js +++ b/apps/remix-ide/src/app/editor/editor.js @@ -61,6 +61,12 @@ class Editor extends Plugin { // to be implemented by the react component this.api = {} + this.dispatch = null + } + + setDispatch (dispatch) { + this.dispatch = dispatch + this.renderComponent() } render () {