MCPcopy Create free account
hub / github.com/basir/node-react-ecommerce / userUpdateReducer

Function userUpdateReducer

frontend/src/reducers/userReducers.js:17–27  ·  view source on GitHub ↗
(state = {}, action)

Source from the content-addressed store, hash-verified

15}
16
17function userUpdateReducer(state = {}, action) {
18 switch (action.type) {
19 case USER_UPDATE_REQUEST:
20 return { loading: true };
21 case USER_UPDATE_SUCCESS:
22 return { loading: false, userInfo: action.payload };
23 case USER_UPDATE_FAIL:
24 return { loading: false, error: action.payload };
25 default: return state;
26 }
27}
28
29function userRegisterReducer(state = {}, action) {
30 switch (action.type) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected