The Redux state can be accessed in a thunk by using the second argument to thunks: getState. getState can then be called to read any value from the redux store.
Summary of Content:
- Call getState in a thunk to read from the Redux store
- Use data from the store to submit only one request at a time to the HTTP server
Something went wrong
Lesson added to playlist
Create new playlist
Name can't be empty