kaisermann / svelte-loadable

Dynamically load a svelte component
MIT License
320 stars 13 forks source link

Is a native way to do the same in Kit? #52

Open frederikhors opened 2 years ago

frederikhors commented 2 years ago

I'm using svelte-loadable for the first time.

It's amazing, thanks @kaisermann!

I'm wondering if it still makes sense in a SvelteKit project.

Is a native way to do the same in Kit?

kaisermann commented 2 years ago

Hey @frederikhors 👋 I haven't used kit seriously yet, so I'm afraid I don't know how to answer that 😢 With that said, I don't recall seeing anything regarding loading states for dynamic components in kit, so it could be useful.

frederikhors commented 2 years ago

Ok. Can we leave this open until we better understand? Thank you.

michaelcuneo commented 2 years ago

I'm curious as well, but I'll check it out. It does look like there is some Load functionality, but I think it's just a replacement for Fetch. Not a Dynamic Loader.