This commit is contained in:
Richard Harris
2019-02-03 00:14:53 -05:00
parent 66be631572
commit 3d7cfbbf3d
26 changed files with 131 additions and 135 deletions

View File

@@ -0,0 +1,12 @@
<script>
import { setContext } from 'svelte';
import { CONTEXT_KEY } from './shared';
export let Root;
export let props;
export let session;
setContext(CONTEXT_KEY, session);
</script>
<Root {...props}/>

View File

@@ -0,0 +1 @@
<svelte:component this={child.component} {...child.props}/>

View File

@@ -0,0 +1,10 @@
import { writable } from 'svelte/store';
export const stores = {
preloading: writable(false),
page: writable(null)
};
export const CONTEXT_KEY = {};
export const preload = () => ({});