我正在使用RTK query,通过useGetUserQuery接口获取一条记录 Api调用可以,因为后端有结果。我使用sequelize和我的结果发送数据对象。我试图删除providestags,但我也遇到了同样的问题。 我的前端返回这个错误: rtk-query.esm.js:771 Uncaught (in promise) TypeError: Cannot read property 'providesTags' of undefined
at calculateProvidedByThunk (rtk-query.esm.js:771)
at rtk-query.
我正在学习REDUX和REDUX工具包,我在我的应用程序中得到了这个错误。
Uncaught Error: The slice reducer for key "cart" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set
嘿,社区,我正在Solana上开发一个dApp,我正在使用Redux进行州管理。我正在创建一个Redux切片,它保存当前“提示接收者”钱包地址的状态。我正在使用Redux工具箱的createSlice,但是我一直在控制台中得到这个初始化错误:
redux.js:473 Uncaught Error: The slice reducer for key "receiver" returned undefined during initialization.
If the state passed to the reducer is undefined, you must expl
我有一个演示应用程序,如图中所示,非常简单的应用程序包含根目录中的所有js和html文件,lib包含依赖项:
如果我使用vscode和right-click -> open with live server访问right-click->open with live server,那么应用程序就会在http://192.168.1.2:5500/index.html上正常工作。
但是,如果我转到index.html并按下f5,那么将启动一个新的chrome实例,但是有些应用程序文件没有被“加载/检测”,因此我得到了以下错误:
angular.js:138未明
我有一个带有Rails后端的Heroku测试环境,并且响应前端。最近,我对测试环境进行了一些更改,现在出现了一个空白屏幕,出现了两个错误之一。以下任一项:
<body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script type="text/javascript" src="/static/js/main.d825ec61.js"><
我得到了这个错误:
Reducer "menu" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you dont want to set a value for this reducer, you can use null instead of
在另一个开发人员的帮助下,我正在重构一个大型web应用程序。在我看来,后端的组织方式如下:
Symfony PHP: controller
PostgreSQL DB: model
据我所知,客户端浏览器是服务器的“视图”。
前面的组织也是这样组织的:
Redux.js: model + controller // this is all mildly simplified
React.js: view
因此,将客户端浏览器视为服务器状态的视图,以及浏览器维护自己的服务器端数据状态、控制器和视图,在概念上正确吗?
我是服务器端的“专家”(强调引号),而我的助手是前端专