CountableStore
Extends:
FluxMapStore → BaseStore → CountableStore
Direct Subclass:
A base class for resource stores that are countable (have /count.json endpoints).
Constructor Summary
| Public Constructor | ||
| public |
constructor(dispatcher: APIDispatcher, actions: Actions) |
|
Method Summary
| Public Methods | ||
| public |
count(query: ResourceQuery): number Returns the count for the given query |
|
| public |
reduce(state: *, action: *): * |
|
Inherited Summary
| From class BaseStore | ||
| public |
Determines whether or not the state of this store has changed. |
|
| public |
Used to reduce a stream of actions coming from the dispatcher into a |
|
| public |
where(source: QueryObject): Array<object> Queries the store for resources matching the source object |
|
Public Constructors
public constructor(dispatcher: APIDispatcher, actions: Actions) source
Override:
BaseStore#constructorParams:
| Name | Type | Attribute | Description |
| dispatcher | APIDispatcher | The dispatcher to register with |
|
| actions | Actions |
Public Methods
public count(query: ResourceQuery): number source
Returns the count for the given query
Params:
| Name | Type | Attribute | Description |
| query | ResourceQuery |
|
public reduce(state: *, action: *): * source
Override:
BaseStore#reduceParams:
| Name | Type | Attribute | Description |
| state | * | ||
| action | * |
Return:
| * |