misc: switch profile to use a derived store

This commit is contained in:
Xylight committed 2024-07-06 11:33:31 -07:00
1 parent 0f4796dadc
commit 19d4617dbf
5 files changed
+77 -127

No files matched your search

+2 -1
View File
@@ -1,6 +1,7 @@
import { profile } from '$lib/auth.js'
import { get } from 'svelte/store'
import { getClient, site as siteStore } from '$lib/lemmy.js'
import { getClient } from '$lib/lemmy.js'
import { site as siteStore } from '$lib/site'
export async function load({ fetch }) {
if (!get(profile)) return