Merge pull request #3484 from urbit/mp/dojo-subscription-tweak

soto: call resetControllers on mount
This commit is contained in:
matildepark 2020-09-15 19:22:43 -04:00 committed by GitHub
commit 15593d69f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,6 @@ export default class DojoApp extends Component {
this.store.setStateHandler(this.setState.bind(this));
this.state = this.store.state;
this.resetControllers();
}
resetControllers() {
@ -29,6 +28,7 @@ export default class DojoApp extends Component {
}
componentDidMount() {
this.resetControllers();
const channel = new window.channel();
this.api = new Api(this.props.ship, channel);
this.store.api = this.api;