Closed piotrwitek closed 5 years ago
Redux saga example in the docs doesn't work because of a missing line https://github.com/piotrwitek/typesafe-actions#with-redux-saga-sagas
function* addTodoSaga(action: ReturnType<typeof fetchTodosAsync.request>): Generator { try { // <= this line is missing const response: Todo[] = yield call(todosApi.getAll, action.payload); yield put(fetchTodosAsync.success(response)); } catch (err) { yield put(fetchTodosAsync.failure(err)); } }
Description
Redux saga example in the docs doesn't work because of a missing line https://github.com/piotrwitek/typesafe-actions#with-redux-saga-sagas
Suggested solution(s)