MK
Size: a a a
MK
НР
Error: import or require() statements can be added only by editing a Markdown example file
LK
LK
HH
HH
V
НШ
axiosGetContentAction.failure
в редьюсере 🤷♂️V
axiosGetContentAction.failure
в редьюсере 🤷♂️V
case LOGIN_FAILURE: {
return { ...state, error: "failure" };
}
V
НШ
payload
, смело записывай 🙂V
payload
, смело записывай 🙂V
V
`export const loginReducer = (state = initialState, action: { type: string; payload: ServerResponse }) => {}`
V
export type ServerResponse = { success: boolean, token: string }
НШ
axiosGetContentAction
yield put(axiosGetContentAction.failure(error));