DO
Size: a a a
DO
Jj

DO
const onAfterLogin = (myVal) => (dispatch, getState) => { dispatch(actionCreator(myVal)) }IM
getWebinars: () => async (dispatch) => {
try {
dispatch(WebinarsActionCreators.setIsLoading(true));
const response = await mainApi.getWebinars();
if (response.status === 200) {
dispatch(WebinarsActionCreators.setWebinars(response.data));
} else {
throw new Error(Ошибка ${response.status}) <---
}
} catch (error) {
dispatch(WebinarsActionCreators.setError(error);
}
}
DO
DO
DO
DO
IM
Jj

А
Jj

Jj

S
А
А
DS
S
S