akiran / akiran/react-slick

Using Node Refs as Slider children gets mixed

Aperta
#1,974 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
11.9k
Fork
2.1k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

in this example adding a children dynamically at the start of the items somehow change the useRef used in the children.

You can see it clearly here:

![image](https://user-images.githubusercontent.com/68874928/105915475-c916a080-5ffd-11eb-8a10-e487bd0a0879.png)

Sandbox: https://codesandbox.io/s/weathered-waterfall-f5gdb?file=/src/App.js

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.