我得到了组件,它的工作是显示用户数据从react-redux,但userData可以存储在localStorage和网站的第一次加载这个localStorage被获取到redux状态,所以我得到了错误的地方在向mapStateToProps函数添加async/await之后,localStorage会被获取,但我仍然收到错误提示'Cannot get 0 of undefined',使用带有预置首字母的useEffectconst initial = await `${user.name[0]}${user.surname[0]
firebaseConnect HOC返回undefined for 'collections‘。但是,如果我删除“where”参数,它将返回数据。function mapStateToProps(state) { contestants: state.firestore.ordered['ContestantsList-contestantsthis line, it works
storeAs: 'ContestantsList-contest