DaffCategoryFacade

A facade for interacting with the category state. This facade exposes many parts of the state for easy access and allows dispatching of actions.

Properties

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.
Graycore, LLC © 2018 - 2024. Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.