BigDogWang
V2EX  ›  问与答

请教一个 redux 的问题

  •  
  •   BigDogWang · Mar 26, 2021 · 1543 views
    This topic created in 1899 days ago, the information mentioned may be changed or developed.
    我在 flutter 中开始接触 redux,但是我发现 redux 里 state 任意一个属性变化了,就会导致整个 state 树被刷新,所有的使用到 state 的 widget 都会触发刷新

    请问这个是正常的吗?如果不正常有没有什么规避的方式
    1 replies    2021-03-26 16:36:13 +08:00
    cnwan
        1
    cnwan  
       Mar 26, 2021
    配合 Immutable 应该可以规避
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   911 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 22:32 · PVG 06:32 · LAX 15:32 · JFK 18:32
    ♥ Do have faith in what you're doing.