-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[core] Warn about Children.map & Fragment #12021
Conversation
88c5a15
to
d8924a1
Compare
d8924a1
to
e585644
Compare
I have a MenuList defined similar to the following:
I use a
Because of the changes in this PR. Everything is working fine, but I would like to get rid of this new warning. Is that possible? I feel like adding this warning is regressive in this case since Fragment is there so you don't add an extra |
@nbkhope Well have you considered using an array instead as the warning suggested? You could just define an array before and conditionally push new items. |
@eps1lon defining as an array require me add a "key" to every single entry. I feel like it gets more convoluted. I will just replace the Fragment with a div, but I still think doing this is regressive. |
@nbkhope |
Following #10932 (comment) of @ViolentCrumble