animotionjs / animotion

🪄 Create beautiful presentations with Svelte
https://animotion.pages.dev
MIT License
1.37k stars 41 forks source link

Prefetch api data at build time #25

Closed dldx closed 6 months ago

dldx commented 6 months ago

First of all, thanks for this amazing library. It is very nice to use!

Not sure if this is the right place to ask this question but I'm constructing charts within slides.svelte using data fetched from an external API. I would like the data to be cached within at build time if possible, like with sveltekit prerendering. Any thoughts on how to achieve it?

Cheers, Durand

mattcroat commented 6 months ago

No idea but in the next Animotion update I'm going to use the SvelteKit template to make it easier.

dldx commented 6 months ago

Ah, sounds great!