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
@@ -6,6 +6,7 @@ import {
generalizePersonMention,
generalizePrivateMessage,
} from '$lib/lemmy/inbox.js'
import { ReactiveState } from '$lib/promise.svelte.js'
import { get } from 'svelte/store'
type InboxFeedType = 'replies' | 'mentions' | 'messages' | 'all'
@@ -61,7 +62,7 @@ export async function load({ url, fetch }) {
unreadOnly: unreadOnly,
type: type,
page: page,
data: data,
inbox: new ReactiveState(data),
limit: 20,
}
}