#undefined props on first render

9 messages · Page 1 of 1 (latest)

rustic tide
#

I am fetching some images and displaying the data using a client interactive component like this, the problem is always on the first render it says urls is undefined

sweet island
#

is carousel slotted within a suspense?

rustic tide
sweet island
#

could you try adding key="carousel" to the carousel component

rustic tide
sweet island
#

i should clarify, try adding the key prop where carousel is being used in the astro file

rustic tide
#

I figure out a solution, problem was the props, when using {urls} it fails

#

is not able to destructure the props from an async comp