Skip to content

Commit

Permalink
Merge pull request #165 from evlim/effect
Browse files Browse the repository at this point in the history
$effect
  • Loading branch information
scosman authored Nov 2, 2024
2 parents 48ca9a6 + 3487373 commit 47ba79b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/routes/(admin)/account/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<script lang="ts">
import { run } from "svelte/legacy"
import { invalidate } from "$app/navigation"
import { onMount } from "svelte"
let { data, children } = $props()
let { supabase, session } = $state(data)
run(() => {
$effect(() => {
;({ supabase, session } = data)
})
Expand Down

0 comments on commit 47ba79b

Please sign in to comment.