我只是试着让简单的还原剂在反应还原,但它从来没有调用。经过多次试验,我不知道为什么不起作用了。console.log在运行中显示,但减速器从未被调用。import React from "react";import * as actions from "store/actions/actions/actionTypes";
const initialSt
我无法访问存储在任何屏幕上的状态值。值可以到达操作,但是当我从store访问它时,它总是返回undefined。每件事都在不同的文件中 减速器1 import * as Actions from '../actionTypes' switch (action.type) {
case Actions.SET_PROFILE_
我正在运行一个react-app,并使用react-redux来管理我的状态。它一开始工作得很好,但是突然崩溃了。我不能捕获任何对象,只是告诉我“createStore longer.It :TypeError(...) is not a function” 我试着按照别人说的那样重新安装一个低版本的react-redux我只是尝试将代码作为redux offical size提供的示例,它在调用createStore(reducer)的第一步中很糟糕。/serviceWorker'
import <e