member_webapp/@overflow/probe/store/container/probe-detail/probe-detail.state.ts

16 lines
395 B
TypeScript
Raw Normal View History

2018-05-26 09:08:40 +00:00
import { Selector, createSelector } from '@ngrx/store';
import { createEntityAdapter, EntityState } from '@loafer/ng-entity';
export interface State {
pending: boolean;
}
export const initialState: State = {
pending: false,
};
export function getSelectors<S>(selector: Selector<any, State>) {
return {
selectPending: createSelector(selector, (state: State) => state.pending),
};
}