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
{{ message }}
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.
I have an array of arrays. I'm rendering the child arrays as slider elements. When I change the state, I change the array that the slider renders. Instead of swapping elements, it renders new slides internally, bloating the DOM and duplicating navigation elements.
This behavior is reproduced if slider elements have a unique key. If you remove the key (react swears on this), the bug doesn't reproduce.
I have an array of arrays. I'm rendering the child arrays as slider elements. When I change the state, I change the array that the slider renders. Instead of swapping elements, it renders new slides internally, bloating the DOM and duplicating navigation elements.
This behavior is reproduced if slider elements have a unique key. If you remove the key (react swears on this), the bug doesn't reproduce.
Representation:
https://codesandbox.io/s/dawn-paper-y8pld4?file=/src/App.js
The text was updated successfully, but these errors were encountered: