Open fupeijie opened 2 years ago
redux直接存贮e.target,页面会非常卡顿
Steps to reproduce the behavior: 1. 2. 3. 4.
Expected behavior 1.存储dom节点不卡顿或者其他替代方案获取dom节点信息
redux存的都是plain object,dom节点不适合使用状态管理。我觉得你应该保存的是id或者其它唯一标识
What happens?
redux直接存贮e.target,页面会非常卡顿
How To Reproduce
Steps to reproduce the behavior: 1.
2.
3.
4.![截屏2022-02-06 10 53 23](https://user-images.githubusercontent.com/23304328/152666038-5780a35b-9027-42a7-b4e6-d025302b9312.png)
Expected behavior 1.存储dom节点不卡顿或者其他替代方案获取dom节点信息
Context