August 2017
Beginner
374 pages
10h 41m
English
If you try to create a new post after logging in, you will get the following error:
Error: No authorization token was found
We are not sending the token with the createPost request yet. We are now going to do that:
const _createPost = (token, post) => thunkCreator({
Then, we extend the createPost function:
export const createPost = (token, post) => (dispatch) => _createPost(token, post)(dispatch)
Read now
Unlock full access