Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentDidMount() {
network.onReady(() => {
this.client = network.getClient();
this.connection = network.getConnection();
this.session = this.connection.getSession();
setImmediate(() => {
setup(network.getClient().session);
this.setImageProvider();
this.forceUpdate();
});
});
// props.simulation is not necessarily updated with latest metadata, so we fetch it.
client
.getSimulationStep(this.props.simulation._id, this.props.step)
.then((resp) => {
const hostname = this.props.location.hostname