我正面临一个错误,比如 Object(...) is not a function

时间:2021-06-02 03:07:42

标签: redux react-redux redux-saga

我是 redux 的新手。当我尝试运行我的代码时,它会抛出该错误 6 |

7 | const UserComponent = () => {

8 | const dispatch = useDispatch();

<块引用>

9 | const users = useSelector(state => state.users.users);

10 | 11 | useEffect(() => {

12 | dispatch(getUsers([{

0 个答案:

没有答案