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
After some more digging found this to be valid for Preact only. As stated in the comments, React does it's own magic with Children.map and avoids the issue 😅
Which package?
Encountered on [email protected], but reproducible on [email protected] and onwards
Describe the bug
After this commit it seems that React node chunks are being injected with hardcoded key props. This results in numerous warnings in the console etc.
Looks to be caused by
toArbitrarilyKeyedReactNode
here:5709220#diff-3f3eca6b8934a329c2b948cf0c6aa17d25892fbc510accb92734ceb96a03a3e7R42-R46
To Reproduce
Make a source string like:
And the use that message like:
Codesandbox URL
https://codesandbox.io/p/sandbox/fqccvj (React)
https://codesandbox.io/p/sandbox/purple-leaf-85qgsq (Preact - what we use specifically)
as the messages are shown only in development builds, these are more just to give a better idea of the issue :)
Expected behavior
No duplicate keys among simbling nodes and no warning messages.
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: