kaisermann / kaisermann/svelte-loadable

Feature: Support for loading components by promise

Open
#41 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Svelte
Stars
321
Forks
12
PR merge metrics
No merged PRs in 30d

Description

Hi, if you do like this

```



```

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?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the Loadable component's loader handling and reproduce the issue with the provided dynamic-import example. Trace why the loader value does not expose then, and consider the work complete when a promise-based loader successfully renders Test.svelte without the component.then error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.