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
Just FYI @bryceosterhaus, even though this example will still work after this fix, it's doing something that is not good for components in general, so I thought it best to let you know in case you have something similar to this in real code and haven't noticed. The problem I'm talking about here is that this code is setting each Child component's key to its item value. When you add a new value to the beginning of the items property you're always adding the value 0. That means that after the first click more than one Child component will receive the same key, with value 0. That's bad for performance, since keys should be unique inside the same parent element, otherwise we won't reuse the child components as well as we could.
I am getting this error for rendering a "Carousel" type of component where the components are nested and conditionally rendered.
I have boiled down the code a bit for an example. Try out the code below and click to add items to see the error
The text was updated successfully, but these errors were encountered: