move all page info to app-level stores

This commit is contained in:
Rich Harris
2019-02-01 22:28:47 -05:00
parent 7ba1a0a9fa
commit 548de702ac
17 changed files with 135 additions and 154 deletions

View File

@@ -2,6 +2,11 @@ import * as sapper from '@sapper/app';
window.start = () => sapper.start({
target: document.querySelector('#sapper')
}).catch(err => {
console.error(`OH NO! ${err.message}`);
throw err;
}).then(() => {
console.log(`STARTED`);
});
window.prefetchRoutes = () => sapper.prefetchRoutes();