brainhubeu / react-carousel

A pure extendable React carousel, powered by Brainhub (craftsmen who ❤️ JS)

Home Page:https://brainhub.eu/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"infinite plugin doesn't work"

taffarelemilio opened this issue · comments

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

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)