Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.getCapabilities = mobxUtils.createTransformer(terria => {
const url = this.getCapabilitiesUrl;
return mobxUtils.lazyObservable(sink => {
loadXML(url).then(sink);
}, undefined).current();
});
constructor() {
this.operation = lazyObservable(async sink => {
sink(null);
const result = await this.performOperation();
sink(result);
});
}