-
In dioxus version 0.6.0-alpha-2, a re-rendering was triggered by a change in the Signal of the parent component, but the re-rendering of a child component of the same type in the same location only updated the value corresponding to the incoming Props, but did not reset the Signal within the child component. How can I make the Signal in the component to be reset when re-rendering? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
I tried to add a key attribute to the component, like react does, but it doesn't work in dioxus! |
Beta Was this translation helpful? Give feedback.
-
Currently, dixous' key only works in lists. To solve the above problem, you can build the component in an iterator, like this |
Beta Was this translation helpful? Give feedback.
-
After this pr, key-prop works in normal components without the need to use it in iterators. |
Beta Was this translation helpful? Give feedback.
Currently, dixous' key only works in lists. To solve the above problem, you can build the component in an iterator, like this