diff --git a/src/app/components/ThreadActions.svelte b/src/app/components/ThreadActions.svelte index 0278ab9..60af31b 100644 --- a/src/app/components/ThreadActions.svelte +++ b/src/app/components/ThreadActions.svelte @@ -26,7 +26,7 @@ const {url, event, showActivity = false}: Props = $props() - const thunk = $thunks[event.id] + const thunk = $derived($thunks[event.id]) const deleted = deriveIsDeleted(repository, event) const path = makeSpacePath(url, "threads", event.id) const filters = [{kinds: [COMMENT], "#E": [event.id]}] diff --git a/src/app/components/ThunkStatus.svelte b/src/app/components/ThunkStatus.svelte index b7183ca..c262fab 100644 --- a/src/app/components/ThunkStatus.svelte +++ b/src/app/components/ThunkStatus.svelte @@ -27,7 +27,7 @@ : publishThunk((thunk as Thunk).request) } - const status = throttled(300, thunk.status) + const status = $derived(throttled(300, thunk.status)) const ps = $derived(Object.values($status)) const canCancel = $derived(ps.length === 0 && $userSettingValues.send_delay > 0) const isFailure = $derived(!canCancel && ps.every(s => [Failure, Timeout].includes(s.status)))