-
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove `"deprecated": null` — this should be fixed on the generation side, but this is placeholder * fix * add prev/next links * fix edit link * more * remove console logs * another
- Loading branch information
1 parent
ea5da37
commit a2d8403
Showing
7 changed files
with
193 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
<script> | ||
import { onMount } from 'svelte'; | ||
<script lang="ts"> | ||
import { onMount, type Component } from 'svelte'; | ||
let constructor; | ||
let { | ||
this: importer, | ||
...rest | ||
}: { | ||
this: () => Promise<Component>; | ||
} = $props(); | ||
let constructor: Component; | ||
onMount(async () => { | ||
constructor = await $$props.this(); | ||
constructor = await importer(); | ||
}); | ||
</script> | ||
|
||
<svelte:component this={constructor} {...$$props} /> | ||
<svelte:component this={constructor} {...rest} /> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters