使用 Redux + 模型序列化/反序列化时出现渲染错误
作者: jamal-ahmad创建于 2020年9月19日更新于 2025年4月2日
标签questionanswered
However, this results in very broken rendering. (see pic below). I have a couple of questions:
- Is there something I'm doing wrong here?
- If a state management solution is used, how is that global state supposed to be updated?
- Should I store something else in the store, e.g. the ModelEngine object itself? I'm not sure how feasible that would be with redux
- Is redux not a good choice for react-diagrams? Maybe something like mobx or react context? I hope this isn't the case because redux tooling is very nice and it would be a shame if react-diagrams and redux were at odds.
内容来源: projectstorm/react-diagrams