Home > @theatre/dataverse > AbstractDerivation

AbstractDerivation class

Signature:

export default abstract class AbstractDerivation<V> implements IDerivation<V> 

Implements: IDerivation<V>

Constructors

Constructor Modifiers Description
(constructor)() Constructs a new instance of the AbstractDerivation class

Properties

Property Modifiers Type Description
_dependencies Set<IDerivation<$IntentionalAny>>
_dependents Set<IDependent>
_lastValue undefined | V
isDerivation true
isHot boolean

Methods

Method Modifiers Description
_addDependency(d)
_becomeCold()
_keepHot()
_markAsStale(which) This is meant to be called by subclasses
_reactToDependencyBecomingStale(which)
_recalculate()
_removeDependency(d)
addDependent(d)
changes(ticker)
changesWithoutValues()
flatMap(fn)
getValue()
keepHot()
map(fn)
removeDependent(d)
tapImmediate(ticker, fn)