cleanup: use ReactiveState to provide $state with sveltekit (#492)
This commit is contained in:
1 parent
589db4dcc7
commit
7c46e616f8
18 files changed
+168
-168
No files matched your search
@@ -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,
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user