Closed DhaniAM closed 8 months ago
thanks for raising this issue. We'll look into it and get back to you
I just change my initial useState from [ ] into null and somehow this issue is gone. I don't understand why but it works.
from:
const [kategoriList, setKategoriList] = useState<Array<any>>([])
// inside KategoriPilihan component contain the Slide component
{kategoriList ? <KategoriPilihan data={kategoriList}/> : <Loading/>}
change into:
const [kategoriList, setKategoriList] = useState<any>(null)
// inside KategoriPilihan component contain the Slide component
{kategoriList ? <KategoriPilihan data={kategoriList}/> : <Loading/>}
So here's what happen:
*Update: If I set infinite to false, then I can see the Slide content but it's not full width. The left & right arrows are in the right place, but the contents are not. After I resize screen, then it'll become full width. If I set infinite to true, then I can't see the Slide content at all like I said before.
Here's my code