Skip to content

Commit

Permalink
spaces -> tabs, and add explanatory comment so we dont later delete it
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Jul 25, 2022
1 parent 3797c31 commit 6e7d896
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<script context="module">
/** @type {import('@sveltejs/kit').Load} */
export async function load({ session }) {
session;
session; // not necessary, but prevents the argument from being marked as unused
return {
props: {
// Needs to be an object, else Svelte will do by-value-comparison and skip rerender
Expand All @@ -21,5 +22,5 @@
</script>

<h1>{count}</h1>
<button on:click={() => $session.calls = 123}>Rerun Layout Load Function</button>
<button on:click={() => ($session.calls = 123)}>Rerun Layout Load Function</button>
<slot />

0 comments on commit 6e7d896

Please sign in to comment.