Skip to content

Feature: Support for loading components by promise #41

@duruer

Description

@duruer

Hi, if you do like this

<Loadable loader="{import('./Test.svelte')}" delay="{delay}">
  <div slot="success" let:component>
    <svelte:component this="{component}" {...params} />
  </div>
</Loadable>

It won't load the component and will give error like; component.then is not a function
Maybe you can detect is it a promise in loader and if it is, it can await it to load?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions