2017-06-19 74 views
2

我在Redux-Devtools插件(适用于多个浏览器)时遇到问题。许多网站使用Redux模式,我的应用程序经常被选中。有谁知道如何命名商店,所以插件不显示14/ngrx-store-somehash,而是将我的应用程序的名称显示为所选实例?Angular NGRX - 为Redux-Devtools命名商店/应用程序实例

+1

它似乎是[DevtoolsExtension'类](https://github.com/ngrx/store-devtools/blob/v3.2.4/src/extension.ts#L35-L56)的内部。我想你可以扩展它并注入你的扩展类。 – cartant

回答

0

正如你可以看到here它已被添加参数与配置选项配置商店名称和它可以这样使用:

StoreDevtoolsModule.instrument({ maxAge: 5, name: "Yout custom store name here" }), 

今天在生产版本(4.1.1),它尚未可用,但如果你想使用它,你可以下载git版本。