You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This causes react-warnings and disrupts rendering since the children can not be distinguished from each other with same key="0" attribute.
key="0" on root element should not be rendered at all.
react warning:
Warning: Encountered two children with the same key, 0. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.
The text was updated successfully, but these errors were encountered:
kromit
changed the title
key="0" attribute on root element disrupts rendering performance
key="0" attribute on root element disrupts rendering
Apr 27, 2020
Yes, thank you. I know the workarounds, but I can not use them since the processing is dynamic, so I do not have all snippets and I can not change the HTML structure.
When processing multiple HTML chunks
<p>mytext-1</p>
,<p>mytext-2</p>
,<p>mytext-3</p>
the parser generates
key="0"
attribute every time.This causes react-warnings and disrupts rendering since the children can not be distinguished from each other with same
key="0"
attribute.key="0"
on root element should not be rendered at all.react warning:
The text was updated successfully, but these errors were encountered: