Use advanced React features and good practices #5786
maxpatiiuk
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
<details>element is closedTo avoid a bug when the default value depends on a prop, but then the prop changed (i.e, because the same component is now serving a different resource)
This bug is especially common when adding/removing a line in a list of lines (
xml-editorDeleting fields always deletes last field in the list #3332)Or try to not use default values that depends on props and use useEffect instead
Beta Was this translation helpful? Give feedback.
All reactions