theatre/packages/dataverse-experiments/src/derivations/ConstantDerivation.ts
2021-10-04 20:06:12 +02:00

17 lines
294 B
TypeScript

import AbstractDerivation from './AbstractDerivation'
export default class ConstantDerivation<V> extends AbstractDerivation<V> {
_v: V
constructor(v: V) {
super()
this._v = v
return this
}
_recalculate() {
return this._v
}
_reactToDependencyBecomingStale() {}
}