type DispatchFn<State extends IStateData = IStateData> = (prevState: State) => Promise<State>; Copy
type DispatchFn<State extends IStateData = IStateData> = (prevState: State) => Promise<State>;