ndiego / icon-block

Effortlessly add SVG icons and graphics to your website.
https://nickdiego.com/projects/icon-block/
GNU General Public License v2.0
104 stars 14 forks source link

Each child in a list should have a unique "key" prop. #12

Closed EdithAllison closed 1 year ago

EdithAllison commented 2 years ago

Sometimes I see in console:

Warning: Each child in a list should have a unique "key" prop.

Check the top-level render call using <div>. See https://reactjs.org/link/warning-keys for more information.
div
No<@https://.../wp-content/plugins/icon-block/build/index.js?ver=0084d35570e783e202ca0d63d6e4ecad:2:6239

All maps have keys so I'm stumped why this error would occur. It doesn't seem to break anything.

PS: If it's of interest your plugin works perfectly with WP 6.0 Beta3, I've tested it today.

I updated the description of this issue to remove refereneces to my fork which turned out to be a separate issue & not linked to the missing keys.

ndiego commented 2 years ago

Thanks for reporting @EdithAllison, I'll definitely take a look!

ndiego commented 2 years ago

I have not been able to replicate it but will keep this issue open until the next release if anything pops up.

EdithAllison commented 2 years ago

@ndiego I'm sorry I forgot in my report that I see this error only in WP Admin, not frontend

ndiego commented 1 year ago

I am still not able to replicate this issue. I have retested in 6.0 and 6.1 but have yet to be successful. Therefore, I am closing out this issue, but if anyone can reliably replicate it in 6.1, please feel free to comment, and I'll reopen.