Open jeffandeko opened 4 years ago
It means that state.userUpdate is undefined. Check the reducer to see if you initialize it or not.
Had the same problem, but with userRegister. With userRegisterReducer.js was all okey, but needed to import and add it to combineReducers({...}) in store.js. Now all works.
21 | dispatch(update({ userId: userInfo._id, email, name, password })) 22 | } 23 | const userUpdate = useSelector(state => state.userUpdate);