cleanup: use ReactiveState to provide $state with sveltekit (#492)

This commit is contained in:
Xylight authored and GitHub committed 2025-02-17 13:37:37 -08:00
1 parent 589db4dcc7
commit 7c46e616f8
18 files changed
+168 -168

No files matched your search

+2 -1
View File
@@ -1,5 +1,6 @@
import CommunityCard from '$lib/components/lemmy/community/CommunityCard.svelte'
import { getClient } from '$lib/lemmy.svelte.js'
import { ReactiveState } from '$lib/promise.svelte'
export async function load(req: any) {
const community = await getClient(undefined, req.fetch).getCommunity({
@@ -7,7 +8,7 @@ export async function load(req: any) {
})
return {
community: community,
community: new ReactiveState(community),
slots: {
sidebar: {
component: CommunityCard,