mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-11 19:04:30 +00:00
20 lines
396 B
HTML
20 lines
396 B
HTML
<script context="module">
|
|
export function preload() {
|
|
return {
|
|
rootPreloadFunctionRan: true
|
|
};
|
|
}
|
|
</script>
|
|
|
|
<script>
|
|
import { preloading } from '@sapper/app';
|
|
|
|
export let child;
|
|
export let rootPreloadFunctionRan;
|
|
</script>
|
|
|
|
{#if $preloading}
|
|
<progress class='preloading-progress' value=0.5/>
|
|
{/if}
|
|
|
|
<svelte:component this={child.component} {rootPreloadFunctionRan} {...child.props}/> |