Completed
Intro
Class Central Classrooms beta
YouTube videos curated by Class Central.
Classroom Contents
React Redux Thunk Middleware in Redux Toolkit for Async Actions with Axios
Automatically move to the next video in the Classroom when playback concludes
- 1 Intro
- 2 Welcome
- 3 Prerequisite knowledge
- 4 Faster Pace Ahead
- 5 What is a thunk?
- 6 Changing the initial state
- 7 Adjusting to the state shape
- 8 Creating a fetchPosts async thunk
- 9 Adding extraReducers and builder cases
- 10 Dispatching fetchPosts async thunk
- 11 Building a PostsExcerpt component
- 12 Displaying the loading state
- 13 Creating a fetchUsers async thunk
- 14 Dispatching fetchUsers at App load time
- 15 Creating an addNewPost async thunk
- 16 Dispatching the addNewPost async thunk
- 17 Quick Correction
- 18 Do not use try / catch blocks here as the video shows. You need the promise to be fulfilled or rejected which will have the appropriate response in the extraReducers.