mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-13 08:38:43 +03:00
soto: call resetControllers on mount
This commit is contained in:
parent
36202d8463
commit
3482f4ae59
@ -20,7 +20,7 @@ export default class DojoApp extends Component {
|
||||
this.store.setStateHandler(this.setState.bind(this));
|
||||
|
||||
this.state = this.store.state;
|
||||
this.resetControllers();
|
||||
this.resetControllers = this.resetControllers.bind(this);
|
||||
}
|
||||
|
||||
resetControllers() {
|
||||
@ -29,6 +29,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;
|
||||
|
Loading…
Reference in New Issue
Block a user