Skip to content

Commit

Permalink
fix/simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Apr 6, 2022
1 parent b8dbcb7 commit 32d2dd6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/kit/src/runtime/server/page/render.js
Expand Up @@ -84,17 +84,19 @@ export async function render_response({
maxage = loaded.maxage;
});

const session = writable($session);

/** @type {Record<string, any>} */
const props = {
stores: {
page: writable(null),
navigating: writable(null),
/** @type {import('svelte/store').Readable<App.Session>} */
/** @type {import('svelte/store').Writable<App.Session>} */
session: {
...session,
subscribe: (fn) => {
is_private = true;
fn($session);
return () => {};
return session.subscribe(fn);
}
},
updated
Expand Down

0 comments on commit 32d2dd6

Please sign in to comment.