腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
使用Jest测试
Redux
存储
、
、
我是新来
的
Redux
商店测试。当我使用Jest测试下面的
Redux
商店时,我得到TypeError:
无法
读取
未定义
的
属性
“
getState
” 似乎与
Redux
有关
的
东西不起作用我怎样才能绕过这个问题,使这个商店
的
测试成
浏览 1
提问于2018-04-11
得票数 1
回答已采纳
6
回答
TypeError:
无法
读取
未定义
的
属性
“
getState
”
、
我想尝试小
的
redux
示例,所以我安装了
redux
,但是我得到了这个错误。 新提供商webpack-internal:///./node_modules/react-
redux
/es/components/Provider.js:24:25 import Rea
浏览 2
提问于2019-02-24
得票数 9
回答已采纳
1
回答
Redux
:
无法
读取
未定义
的
属性
“”
getState
“”
、
、
、
、
目前我正在学习
Redux
用React创建一个简单
的
todo应用程序。这就是我所做
的
/
redux
/todo.js items: []/components/TodoApp.js exp
浏览 14
提问于2021-02-21
得票数 0
回答已采纳
1
回答
无法
读取
未定义
的
Redux
的
属性
'
getState
‘
、
、
我有一个React应用程序,现在我使用
redux
。应用程序起作用了,但现在我得到了错误: at new Provider__
REDUX
_DEVTOOLS_EXTENSION__ && window.]: (state, action) => selected: action.selected
浏览 8
提问于2019-07-22
得票数 0
回答已采纳
1
回答
redux
saga
无法
读取
未定义
的
属性
getState
、
、
、
我正在尝试建立一个带有saga中间件和异步操作
的
react
redux
存储,以及react-router-
redux
和选择器。对于某些软件,sagamiddleware不能
读取
未定义
的
属性
getState
。我也不知道原因。./src/app.js .
浏览 3
提问于2016-11-21
得票数 0
1
回答
Erroron reactredux路由器
、
、
import React from 'react'import { createStore, combineReducers } from '
redux
'import { Router, Route, browserHistory } from 'react-router'import { syncHistoryW
浏览 4
提问于2016-09-03
得票数 0
2
回答
反应:传递
属性
、
我试图将存储作为
属性
传递给AddTodo,但我得到了错误:
无法
读取
未定义
的
属性
“todo”import ReactDOM from 'react-dom';import { connect } from 'react-
redux
' impo
浏览 3
提问于2017-06-25
得票数 0
回答已采纳
1
回答
TypeError:
无法
读取
Redux
中
未定义
的
属性
“
getState
”
、
、
我想要创建存储两种数据类型
的
存储,即总用户数据和当前用户数据,而不是身份验证系统,而是只显示当前用户
的
数据。TypeError: Cannot read properties of undefined (reading '
getState
') at /Users/karnikkanojia/react-dom-server.browser.develo
浏览 6
提问于2022-06-12
得票数 0
回答已采纳
1
回答
Redux
/toolkit TypeError:
无法
读取
未定义
的
属性
(
读取
“”
getState
“”)
、
、
我在我
的
应用中使用了
redux
/toolkit和实体适配器。问题是,当我想要向我
的
切片添加选择器时,我没有为store.
getState
()定义; 我写这篇文章是基于
Redux
Toolkit文档。RootState>(state => state.drivers); export const selectAllDrivers = driversSelectors.selectAll(store.
getState
浏览 29
提问于2021-09-30
得票数 0
回答已采纳
2
回答
获取调度错误- TypeError
、
、
在我
的
authActions文件中,我得到了一个unhandled rejection (typeerror) cannot read property of data of undefined我在请求体中定义了相同
的
代码块,它没有指向这个错误,只有这个错误。authActions.js export const loadUser = () => (dispatch,
getState
) =&
浏览 6
提问于2019-03-12
得票数 0
1
回答
Redux
-presist -
无法
读取
未定义
的
属性
“”
getState
“”
、
、
我正在学习使用
Redux
persist,以便在刷新页面时不会丢失我
的
商店数据。我使用
的
是名为logger
的
自定义中间件。我知道这个错误是因为当我调用provider时,我
的
存储是
未定义
的
,但我不知道我哪里做错了。请帮助我了解这个问题并解决它。
浏览 11
提问于2019-03-12
得票数 1
1
回答
TypeError:
无法
读取
未定义
的
属性
“”
getState
“”
、
、
、
、
当我运行我
的
应用时,我得到了TypeError:
无法
读取
未定义
的
属性
'
getState
‘,我已经附加了下面的源代码:import React from 'react';import {store} from './<
浏览 29
提问于2021-05-26
得票数 0
1
回答
为什么我
的
选择者不能读“`state`”?状态
未定义
、
、
我正在完成一个非常简单
的
Redux
应用程序,它获取存储在
Redux
存储中
的
引用并在屏幕上呈现它。难以使选择器
读取
状态(
无法
读取
属性
quoteText
的
未定义
)const(getNextQuoteReducer); const state = sto
浏览 0
提问于2019-08-05
得票数 0
回答已采纳
1
回答
Redux
测试-
getState
() TypeError:
无法
读取
未定义
的
属性
“startDateIndex”
、
我一直在使用visual提供
的
.Net核心示例测试React +
Redux
。我不确定我是否完全走错了路,但我正在尝试测试一个已被写入生成天气数据
的
操作。: requestWeatherForecasts: (startDateIndex) => async (dispatch,
getState
) => { if (startDateIndex ===
getState
().weatherForecas
浏览 0
提问于2018-12-11
得票数 2
回答已采纳
1
回答
在进入反应性js时调用api响应
、
、
、
、
我是
redux
和ReactJ
的
初学者。当我试图调用登录api时,响应没有得到,我对此有异议。import { CALL_API } from '
redux
-api-middleware'; return function((
getState
().mopets_api.token.access_token); dispatch(mopetsMe(
getState
().mopets_api.to
浏览 2
提问于2017-12-06
得票数 0
回答已采纳
3
回答
“
无法
读取
未定义
的
属性
‘类型’”,在
redux
存储中,用于外部包中定义
的
操作
、
、
、
、
对于共享组件本身,这是很好
的
工作。然后在我
的
消费项目中,默认
的
还原器如下所示:import { combineReducersmy-custom-ui-package";,并像dispatch(uiShowPrompt("Show
浏览 1
提问于2018-07-29
得票数 2
回答已采纳
1
回答
错误:
无法
使用NextJS
读取
未定义
的
Redux
的
属性
getState
、
、
我正在尝试用
redux
制作一个nextjs应用程序,我正在设置最基本
的
部分。它在这里如下所示。initialState, );}; 每当我尝试运行客户端时,都会收到错误消息, Cannot read property '
getState
' of undefined at Ob
浏览 14
提问于2019-09-13
得票数 3
1
回答
无法
读取
未定义
的
属性
“”
getState
“”
、
、
我试着做同样
的
事情,在这个令人惊叹
的
视频中,丹阿布拉莫夫,但我得到了以下错误:
无法
读取
属性
'
getState
‘
的
未定义
。这是我代码
的
第一部分,我在其中使用了provider,我使用了Component.contextTypes和PropTypes npm包,以便用商店填充上下文。/> , document.getElementBy
浏览 1
提问于2019-07-12
得票数 1
1
回答
从实用程序模块访问
Redux
存储
、
、
';import ReduxThunk from '
redux
-thunk';import { logger } from '
redux
-logger'; import Bootstrap from 'bootstrap/dist/css/b
浏览 0
提问于2018-04-26
得票数 1
回答已采纳
1
回答
尝试使用Axios执行get时出现
getState
错误
、
rootStore'; let state = store.
getState
';import AsyncStorage from '@react-native-async-storage/async-storage'; import {persistStore, persist
浏览 10
提问于2021-09-14
得票数 0
点击加载更多
相关
资讯
WEB前端零基础课
移动硬盘无法读取,也无法显示?看高手是怎么恢复的
彻底解决Stata无法读取过宽文件的问题
手机sd卡修复的方法,无法读取怎么恢复文件?
redux之洋葱模型的源码分析与感悟
热门
标签
更多标签
云服务器
ICP备案
实时音视频
对象存储
云直播
活动推荐
运营活动
广告
关闭
领券