first crack at context-driven store

This commit is contained in:
Rich Harris
2019-01-31 21:42:29 -05:00
parent d486542a8b
commit f587161d7d
38 changed files with 150 additions and 100 deletions

View File

@@ -1,4 +1,4 @@
import * as sapper from '@sapper/client';
import * as sapper from '@sapper/app';
window.start = () => sapper.start({
target: document.querySelector('#sapper')

View File

@@ -1,6 +1,6 @@
<script>
import * as sapper from '@sapper/client';
const session = sapper.session();
import { getSession } from '@sapper/app';
const session = getSession();
</script>
<h1>{$session.title}</h1>