December 2019
Intermediate to advanced
598 pages
12h 21m
English
The first action creator we will implement will be for getting unanswered questions. So, let's get started by carrying out the following steps:
import { Action, ActionCreator, Dispatch } from 'redux';
export const getUnansweredQuestionsActionCreator = () => { return async (dispatch: Dispatch) => { // TODO - dispatch the GettingUnansweredQuestions action // TODO - get the questions from server // TODO - dispatch the GotUnansweredQuestions action };};
This is an asynchronous action creator and returns a function ...
Read now
Unlock full access