Cannot destructure property `user` of 'undefined' or 'null'
问题 Error retrieving user information with redux. I want to get the user information (name, password and address of the avatar from the db) and then edit it. I'm using nodejs, express, react, redux and jwt. Actions/user.js import axios from 'axios'; import {setAlert} from './alert'; import {GET_USER, USER_ERROR} from './types'; //Get current users profile export const getCurrentUser = () => async dispatch => { try { const res = await axios.get('/api/users/me'); dispatch({ type: GET_USER, payload: