【问题标题】:Angular NGRX - naming the store/app-instance for Redux-DevtoolsAngular NGRX - 为 Redux-Devtools 命名 store/app-instance
【发布时间】:2017-11-21 07:15:47
【问题描述】:

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

【问题讨论】:

标签: angular redux ngrx ngrx-store


【解决方案1】:

如您所见here 已添加参数以使用配置选项配置商店名称,可以这样使用:

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

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-03-15
    • 2017-09-16
    • 2017-08-22
    • 2019-12-16
    • 2021-04-16
    • 1970-01-01
    • 2019-01-27
    • 1970-01-01
    相关资源
    最近更新 更多