mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-18 13:35:08 +00:00
first crack at context-driven store
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import * as sapper from '@sapper/client';
|
||||
import * as sapper from '@sapper/app';
|
||||
|
||||
window.start = () => sapper.start({
|
||||
target: document.querySelector('#sapper')
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user