首页 > 解决方案 > 即使应用程序运行良好,NgRx Redux devtools 也没有显示存储和状态详细信息

问题描述

我正在使用下面的示例应用程序来学习 angular+ngrx。 APM 示例 NgRx 应用程序

我已经安装了 Redux firefox 扩展。但是每当我运行/重新加载应用程序时,redux 选项卡都会显示“未找到商店”消息。应用程序按预期工作(能够保持状态)。我能够调度动作,在减速器等中处理它。请帮助..我被困在这很长一段时间了。

标签: angulartypescriptreduxngrxredux-devtools-extension

解决方案


Redux看不到您的 Angular 应用程序时出现问题Store

检查您是否有

StoreDevtoolsModule.instrument({maxAge: 25, logOnly: environment.production})

StoreModule.forRoot(reducers)

否则你就有麻烦了。

顺便说一句,最好安装 DevTools

ng add @ngrx/store-devtools

它将原理图添加到项目中。


推荐阅读