Replies: 2 comments 10 replies
-
If I don't misunderstand, you simply assign the same object. |
Beta Was this translation helpful? Give feedback.
-
// state[key] = initData will not re-render: This is not changing anything, menuItems, menu.name and menu.property.value stay the same |
Beta Was this translation helpful? Give feedback.
-
I changed the state, but I didn't render it again.Is this a bug or is this my misunderstanding?
This is my demo:
https://codesandbox.io/s/crazy-lewin-7rpy8w?file=/src/useListConfig.js
Beta Was this translation helpful? Give feedback.
All reactions