svelte-loadable icon indicating copy to clipboard operation
svelte-loadable copied to clipboard

Is this discontinued?

Open frederikhors opened this issue 2 years ago • 3 comments

Is this discontinued?

frederikhors avatar Jul 05 '23 22:07 frederikhors

Hey @frederikhors 👋, I don't actively maintain this package anymore but PRs are welcome 🙏

kaisermann avatar Jul 06 '23 10:07 kaisermann

They suggested this alternative, what do you think?

https://github.com/sveltejs/kit/discussions/4493#discussioncomment-6370252

{#await import('./MyComponent.svelte')}
  Loading... 
{:then { default: component } }
  <svelte:component this={component} />
{:catch error} 
  Failed to load component
{/await}

frederikhors avatar Jul 06 '23 10:07 frederikhors

That will work well enough for most cases, yeah. You would only need to abstract it a bit in case you want to do the import lazily, like in an if block or something. It all depends on what you need 😁

kaisermann avatar Jul 06 '23 10:07 kaisermann