SwiperJS not iterating through children prop.

I am trying to wrap “swiperjs” in a custom component and am hitting an issue. I am laying my slides out as children in a slot (image 1), and in my code component I am looking at the “children” prop (the slot prop), and I would like to iterate through the items in it, however on inspection, this prop has length 1 and that element has type DataCtxReader … What am I doing wrong?


Do you have providesData:true set? If so it’ll wrap your slot content in DataCtxReader.

Yes, thank you.

I was comparing to another component where we did the same thing (and it used to work)… Missed that detail

Thank you @chungwu!