ArrayItems 删除触发了重新渲染 #3451
Unanswered
xinshangshangxin
asked this question in
Q&A [2.x]
Replies: 1 comment
-
亲,问题解决了么,遇到同问题🥺 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://codesandbox.io/s/infallible-jerry-iqsm6e?file=/App.tsx
Q: 是不是 ArrayItems 用 index 作为 key, 导致删除的时候复用了组件? 应该如何优化才能 不复用组件, 删除1 下面的 2/3/4依然不重新渲染
PS: 拖拽也会有相同问题
Beta Was this translation helpful? Give feedback.
All reactions