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

Function userRegisterReducer

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

Source from the content-addressed store, hash-verified

27}
28
29function userRegisterReducer(state = {}, action) {
30 switch (action.type) {
31 case USER_REGISTER_REQUEST:
32 return { loading: true };
33 case USER_REGISTER_SUCCESS:
34 return { loading: false, userInfo: action.payload };
35 case USER_REGISTER_FAIL:
36 return { loading: false, error: action.payload };
37 default: return state;
38 }
39}
40export {
41 userSigninReducer, userRegisterReducer, userUpdateReducer
42}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected