Optional
cacheService: DSCacheServicePrivate
Readonly
#storyPrivate
_dataOptional
cacheReadonly
currentReadonly
destroy$Protected
Readonly
destroyProtected
isProtected
notReadonly
registerReadonly
state$Protected
Readonly
stateReadonly
timeCreates an effect.
This effect is subscribed to throughout the lifecycle of the ComponentStore.
A function that takes an origin Observable input and returns an Observable. The Observable that is returned will be subscribed to for the life of the component.
A function that, when called, will trigger the origin Observable.
Protected
get共用 DataSource 对象
Protected
initInitializes state. If it was already initialized then it resets the state.
Creates a selector.
A pure projection function that takes the current state and returns some new slice/projection of that state.
Optional
config: SelectConfigSelectConfig that changes the behavior of selector, including the debouncing of the values until the state is settled.
An observable of the projector results.
Rest
...args: [...selectors: Selectors[], projector: Projector<Selectors, Result>]Rest
...args: [...selectors: Selectors[], projector: Projector<Selectors, Result>, config: SelectConfig]Creates an updater.
Throws an error if updater is called with synchronous values (either imperative value or Observable that is synchronous) before ComponentStore is initialized. If called with async Observable before initialization then state will not be updated and subscription would be closed.
A function that accepts one argument which is forwarded as the
second argument to updaterFn
. Every time this function is called
subscribers will be notified of the state change.
Generated using TypeDoc
接收各组件创建修改计算字段的事件, 发给如 Story 组件进行实际更新 暂时使用这种间接的方式