【问题标题】:Where ngrx keeps state datangrx 保存状态数据的位置
【发布时间】:2018-04-05 14:05:39
【问题描述】:

我只是在 Ngrx 保存状态数据的地方徘徊。它只是在内存存储中,还是使用 localStorage 或 indexDB?我的意思是当应用刷新时它如何存储状态?

【问题讨论】:

    标签: ngrx ngrx-store


    【解决方案1】:

    默认情况下它只在内存中。有一些包允许在客户端支持持久性。

    索引数据库: https://github.com/ngrx/db

    LS: https://github.com/btroncone/ngrx-store-localstorage

    【讨论】:

      猜你喜欢
      • 2021-09-29
      • 2018-11-17
      • 1970-01-01
      • 2018-07-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-21
      • 1970-01-01
      相关资源
      最近更新 更多