Open andreademasi opened 3 years ago
Hey @andreademasi, I have been reviewing this issue and I have had some trouble determining the root cause. What I have been able to find out is that our Slide
components are not receiving the updated state from withStore
when using Preact. I think this StackOverflow discussion might be referencing the underlying issues. Do you have any other thoughts or suggestions?
pure-react-carousel
version: 1.27.6react
version: ^16.12.0browser
used: Google Chromenode
version: 12.13.1What you did:
Tried setting custom
classNameHidden
andclassNameVisible
while using preact and GatsbyWhat happened:
After using Preact, css classes weren't applied anymore on slide change
Reproduction:
https://github.com/andreademasi/pure-react-carousel-preact-bug
Try removing gatsby-plugin-preact from gatsby-config.js and the issue disappears
Suggested solution:
The library might be in conflict with preact, needs further investigation