member_webapp/@overflow/sensor-item/store/index.ts
crusader d59d9379f9 ing
2018-05-24 15:44:13 +09:00

30 lines
615 B
TypeScript

import {
createSelector,
createFeatureSelector,
} from '@ngrx/store';
import { StateSelector } from '@overflow/core/ngrx/store';
import * as ListStore from './key-list';
import { MODULE } from '../sensor-item.constant';
export interface State {
list: ListStore.State;
}
export const REDUCERS = {
list: ListStore.reducer,
};
export const EFFECTS = [
ListStore.Effects,
];
export const selectState = createFeatureSelector<State>(MODULE.name);
export const ReadSensorItemKeySelector = new StateSelector<ListStore.State>(createSelector(
selectState,
(state: State) => state.list
));