brainhubeu / react-carousel

A pure extendable React carousel, powered by Brainhub (craftsmen who ❤️ JS)
https://brainhub.eu/
MIT License
1.07k stars 164 forks source link

"infinite plugin doesn't work" #728

Open taffarelemilio opened 2 years ago

taffarelemilio commented 2 years ago

If 'infinite' is active, the carousel disapeears on scroll.

morsaken commented 2 years ago

when using the "infinite" plugin, it works but this error throws:

react-dom.development.js?61bb:67 Warning: Cannot update a component (`re`) while rendering a different component (`wi`). To locate the bad setState() call inside `wi`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render
    at wi (webpack-internal:///./node_modules/@brainhubeu/react-carousel/lib/react-carousel.js:2:120926)
    at u (webpack-internal:///./node_modules/@brainhubeu/react-carousel/lib/react-carousel.js:2:93945)
    at i (webpack-internal:///./node_modules/@brainhubeu/react-carousel/lib/react-carousel.js:2:125859)
    at withResizeDetector(undefined)
    at Ri (webpack-internal:///./node_modules/@brainhubeu/react-carousel/lib/react-carousel.js:2:128466)
    at RecoilRoot (webpack-internal:///./node_modules/@brainhubeu/react-carousel/lib/react-carousel.js:2:64605)