代码之家  ›  专栏  ›  技术社区  ›  Hikmat G.

ngrx保存状态数据的地方

  •  0
  • Hikmat G.  · 技术社区  · 6 年前

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

    1 回复  |  直到 6 年前
        1
  •  1
  •   bc1105    6 年前

    默认情况下,其仅在内存中。有一些包允许在客户端上支持持久性。

    索引DB: https://github.com/ngrx/db

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