I recently read a code like this one in a react project:
export const funcName = (
arg1: Type1,
arg2: Type2,
...
argN: TypeN,
) => async (dispatch: Dispatch) => {
// function body
// ..
};
and I can't understand the double arrow (() => async => {}) syntax.
Can some tell me what is happening here? Thanks