Repository URL to install this package:
|
Version:
0.0.15 ▾
|
// local
import { client } from 'src/bootstrap/client/apolloClient';
import registry from './containerRegistry';
/**
* @tutorial https://mobx.js.org/refguide/map.html
* @extends BaseChain
* @see modules/oneRequest
* @param {Mobx.observable} store
*/
class ObservableContainer {
// named: string
// could take in debug name in props...
constructor() {
this.named = this.constructor.debugName || this.constructor.name;
// always true
// if (process.env.DEVTOOLS_REGISTRY_BY_NAME_ENABLED) {
registry.set(this.named, this);
}
/**
* @todo @name
* @name gql
* @alias apollo
*/
get client() {
return client;
}
}
export { ObservableContainer, registry };
export default ObservableContainer;
//# sourceMappingURL=ObservableContainer.js.map