angular - 即使应用程序运行良好,NgRx Redux devtools 也没有显示存储和状态详细信息
问题描述
我正在使用下面的示例应用程序来学习 angular+ngrx。 APM 示例 NgRx 应用程序
我已经安装了 Redux firefox 扩展。但是每当我运行/重新加载应用程序时,redux 选项卡都会显示“未找到商店”消息。应用程序按预期工作(能够保持状态)。我能够调度动作,在减速器等中处理它。请帮助..我被困在这很长一段时间了。
解决方案
Redux
看不到您的 Angular 应用程序时出现问题Store
检查您是否有
StoreDevtoolsModule.instrument({maxAge: 25, logOnly: environment.production})
后
StoreModule.forRoot(reducers)
否则你就有麻烦了。
顺便说一句,最好安装 DevTools
ng add @ngrx/store-devtools
它将原理图添加到项目中。
推荐阅读
- postgresql - 创建临时文件以上传到 S3
- reactjs - 如何在反应本机消息传递应用程序的群聊消息上显示发件人姓名,如果他发送下一条消息,则不显示他的姓名?
- python - 如何通过单击图标打包python代码以在另一台计算机上使用?
- macos - 我将默认命令迁移到 PlistBuddy,它输出完全相同的 plist,但无法正常工作
- git - git中的远程存储库和本地存储库有什么区别?
- assembly - 如何将此汇编代码转换为十六进制形式?
- html - 如何在 Servicenow 服务门户中将值从服务器传递到 HTML
- python - 我在哪里可以找到 discord.py 中的 on_ready 和 on_message 等方法的源代码?
- reactjs - 如何使用 ImagePicker 在轮播中选择图像?
- two.js - Clip a line inside a circle with Two.js using SVG