MCPcopy Create free account
hub / github.com/freeCodeCamp/freeCodeCamp / spreadThePayloadOnUser

Function spreadThePayloadOnUser

client/src/redux/index.js:100–111  ·  view source on GitHub ↗
(state, payload)

Source from the content-addressed store, hash-verified

98];
99
100function spreadThePayloadOnUser(state, payload) {
101 return {
102 ...state,
103 user: {
104 ...state.user,
105 sessionUser: {
106 ...state.user.sessionUser,
107 ...payload
108 }
109 }
110 };
111}
112
113export const reducer = handleActions(
114 {

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected