A facade for interacting with the category state. This facade exposes many parts of the state for easy access and allows dispatching of actions.
@inheritdoc
Name | Type | Description |
---|---|---|
category$ | Observable<V> | The currently selected category. |
loadingState$ | Observable<DaffCategoryReducerState ['daffState']> |
|
loading$ | Observable<boolean> | |
mutating$ | Observable<boolean> | |
resolving$ | Observable<boolean> | |
products$ | Observable<W[]> | Products of the current category. |
errors$ | Observable<DaffStateError []> |
|
hasErrors$ | Observable<boolean> | |
isCategoryEmpty$ | Observable<boolean> | Is the category page empty of products. |
getCategoryById | Observable<V> | Get a category by the provided Id. |
getProductsByCategory | Observable<W[]> | Get products by a category Id. |
getTotalProductsByCategory | Observable<number> | Get products by a category Id. |
dispatch | Dispatches the given action. |