public static object fetchFollowUser(string followUserId) { return new ThunkAction<AppState>((dispatcher, getState) => { return UserApi.FetchFollowUser(followUserId) .Then(success => { dispatcher.dispatch(new FetchFollowUserSuccessAction { success = success, currentUserId = getState().loginState.loginInfo.userId ?? "", followUserId = followUserId }); }) .Catch(error => { dispatcher.dispatch(new FetchFollowUserFailureAction {followUserId = followUserId}); Debug.Log(error); } ); }); }