#I think there might be something wrong the react intergration

5 messages · Page 1 of 1 (latest)

craggy vine
#

<@&939237746642415626>
i think there might be something wrong with the react integration.
when i request right after the server starts up, i get a deconstruct error, but when i run it for the second time it works just fine, and it keeps working fine till i restart the server again....

https://github.com/thullyDev/MangaRealm/blob/development/src/pages/index.astro

in the code i am clearly adding the data on the component on line 43 tsx <FeaturesSlider data={features} />

i am deconstructing it on line 6
https://github.com/thullyDev/MangaRealm/blob/development/src/components/Widgets/FeaturesSlider/FeaturesSlider.tsx

tsx const { data } = props

and the console.log above confirms that data is there even on the first request when the error occurs

i am new to astro, so i might making a rookie mistake, but there is definitely something goofy happening

GitHub

This a manga site for public and educational use. Contribute to thullyDev/MangaRealm development by creating an account on GitHub.

GitHub

This a manga site for public and educational use. Contribute to thullyDev/MangaRealm development by creating an account on GitHub.

ivory flower
#

Ah sorry I shouldn’t also said in future try not to @ mods

craggy vine
ivory flower
#

Unless it’s about someone breaking community guidelines or discord rules

#

no worries !