YIZHUANG / react-multi-carousel

A lightweight production-ready Carousel that rocks supports multiple items and server-side rendering with no dependency. Bundle size 2kb.
MIT License
1.25k stars 286 forks source link

Does ssr work for gatsby ? #248

Open AnilSonix opened 3 years ago

AnilSonix commented 3 years ago

I tried to use this with gatsby SSR. Build succeeded but the carousel is not rendered.

inandsza commented 3 years ago

I have the same issue, the carousel renders but the slides do not

xXDeonoXx commented 3 years ago

same here

YIZHUANG commented 3 years ago

I have never used Gatsby, can you share me a reproduction repo?

ascandella commented 3 years ago

@AnilSonix are you passing both deviceType and responsive props, in addition to ssr? I had the same issue, and it turns out I wasn't passing deviceType. See comment here: https://github.com/YIZHUANG/react-multi-carousel/issues/249#issuecomment-841401225

AnilSonix commented 3 years ago

I was passing only responsive and ssr props.

Axel-KIRK commented 2 years ago

Same here image image