1.Error: [mobx] Since strict-mode is enabled, changing observed observable values outside actions is not allowed. Please wrap the code in an `action` if this change is intended. 

错误:[MOBX]由于启用了严格模式,所以不允许改变观察到的在动作之外的值。如果此更改是有意的,请将代码包在“Actudio”中。

解决方法:利用回调函数 或 将@observable数据 放在 另一个 @action 中

相关文章:

  • 2021-08-25
  • 2021-10-03
  • 2022-12-23
  • 2021-12-08
  • 2021-05-18
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
  • 2021-11-16
  • 2022-12-23
  • 2021-12-21
相关资源
相似解决方案