【问题标题】:Does NGXS supports undo like redux-undoNGXS 是否像 redux-undo 一样支持 undo
【发布时间】:2019-03-07 17:50:43
【问题描述】:

我正在考虑向我的网络应用程序添加状态管理。 我正在使用 Angular 6。 我看过这个库,看起来很有希望: https://github.com/angular-redux/store

但我同意 NGXS 的作者的观点,即装饰器可能是正确的方法。 我还想将 undo-redo 添加到状态管理中,似乎 angular-redux 与 redux-undo 有这个: https://github.com/omnidan/redux-undo

NGXS 中是否有与此等价的功能? (我不需要花哨的东西)

我需要手动编写吗?

【问题讨论】:

  • 看起来你可以实现一个插件来做到这一点......

标签: redux ngxs angular-redux


【解决方案1】:

目前 NGXS 不支持“撤消”功能。

另外,如果您能解释为什么需要撤消功能,我会尽力提供帮助。

检查这个问题:https://github.com/ngxs/store/issues/269

【讨论】:

    猜你喜欢
    • 2013-01-15
    • 2013-02-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-07-19
    • 2019-07-25
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多