Help with svelte component in astro
This is my [page].astro- which is supposed to be index of all episodes fetched from spotify api. It only fetches 20 episodes, I want to fetch more episodes when ''next" button is clicked. The next button is in my component folder as NextButton.svelte. I want to trigger a function but the button in svelte component not working
[page].astro
NextButton.svelte
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1141417199358189719/image.png)
4 Replies
Make sure to hydrate your NextButton
Astro does not hydrate components unless you tell it to
Not 100% sure this is the right solution but here's more info so you can try it
ye it worked thanks putting helped
👍