We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c69bd9d commit d81f4c2Copy full SHA for d81f4c2
1 file changed
src/app/redux/modules/starsModule.ts
@@ -15,5 +15,9 @@ const initialState: IStars = {
15
16
/** Reducer */
17
export function starsReducer(state: IStars = initialState, action: IStarsAction): IStars {
18
+ // an example how you can deal with action type other than requesting types in promiseReducer
19
+ if (action.type === LOAD_STARS) {
20
+ return state;
21
+ }
22
return promiseReducer<IStars, IStarsAction>(requestType, state, action);
23
}
0 commit comments