This is my redux/main/actions where I set my state.
export const setInfo = (data) => dispatch => {
dispatch({
type: t.SET_LOA,
payload: data
});
}
This is my redux/main/actions where I set my state.
export const setInfo = (data) => dispatch => {
dispatch({
type: t.SET_LOA,
payload: data
});
}
Are you talking about something like this?
const dispatch = useDispatch()
// ...
dispatch(setInfo(data))