import { DaffOperationEntityStateSelectors } from '@daffodil/core/state'
Selectors for an operation state.
interface DaffOperationEntityStateSelectors<TRootState, T extends DaffIdentifiable = DaffIdentifiable> {
selectEntity: (id: T["id"]) => any
selectOptimisticList: MemoizedSelector<TRootState, DaffOperationEntity<T>[]>
}
selectEntity (id: T["id"]) => any |
|---|
Selects an entity by ID. |
selectOptimisticList MemoizedSelector<TRootState, DaffOperationEntity<T>[]> |
|---|
Optimistically selects the list of entities. This excludes temporary entities with errors. |