Repository URL to install this package:
|
Version:
1.2.0 ▾
|
// class ObservableChain extends BaseChain.composeClass(ObservableContainer) {
// constructor() {
// super()
// extendObservable(this, {
// store: observable.map(),
// })
// }
// }
// ObservableContainer.Chain = ObservableChain
// export {ObservableChain}
// decorate(ObservableContainer, {
// // maybe ref?
// omniStore: observable,
// })
// @TODO usually call this store, but that's confusing
// calling it frozen gives the wrong impression, but means it doesn't update
// calling it stats is confusing because react
// frozen = new Map()
// @TODO this should be on a store(Map) for monomorphism
// @TODO better naming
// handle api call
// setHandleHydrate
//
// connectToData,
// withStore,
// ObservableContainer,
//
// @TODO
// observable, computed, action, extendObservable
// constructor(parent) {
// const proto = Object.getPrototypeOf (this)
// console.log('ObservableContainer', proto)
// // super(parent)
// // this.setHandleProps(tapProps)
// }
// setServerSideRenderHandler(handleServerSideApiCall?: Function): ObservableContainer {
// // this.frozen.set('handleApiCall', handleServerSideApiCall)
// this.handleServerSideApiCall = handleServerSideApiCall
// return this
// }