fix: loading status replies after page refresh (#780)
parent
7d6904d73b
commit
4eb9d52fc2
|
@ -19,7 +19,11 @@ const { data: status, pending, refresh: refreshStatus } = useAsyncData(
|
||||||
{ watch: [isMastoInitialised], immediate: isMastoInitialised.value },
|
{ watch: [isMastoInitialised], immediate: isMastoInitialised.value },
|
||||||
)
|
)
|
||||||
const masto = useMasto()
|
const masto = useMasto()
|
||||||
const { data: context, pending: pendingContext, refresh: refreshContext } = useAsyncData(`context:${id}`, () => masto.statuses.fetchContext(id))
|
const { data: context, pending: pendingContext, refresh: refreshContext } = useAsyncData(
|
||||||
|
`context:${id}`,
|
||||||
|
async () => masto.statuses.fetchContext(id),
|
||||||
|
{ watch: [isMastoInitialised], immediate: isMastoInitialised.value },
|
||||||
|
)
|
||||||
|
|
||||||
const replyDraft = $computed(() => status.value ? getReplyDraft(status.value) : null)
|
const replyDraft = $computed(() => status.value ? getReplyDraft(status.value) : null)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue