partey_workadventure/desktop/local-app/src/lib/LazyRoute.svelte
2022-02-22 10:05:21 +01:00

21 lines
413 B
Svelte

<script>
import { Route } from "svelte-navigator";
import Lazy from "~/lib/Lazy.svelte";
export let component;
export let delayMs = null;
let props;
$: {
// eslint-disable-next-line no-shadow
const { component, ...restProps } = $$props;
props = restProps;
}
</script>
<Route {...props}>
<Lazy {component} {delayMs}>
<slot />
</Lazy>
</Route>