mirror of
https://github.com/coracle-social/flotilla.git
synced 2025-12-10 19:07:06 +00:00
Derive all the things
This commit is contained in:
@@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
const {url, event, showActivity = false}: Props = $props()
|
const {url, event, showActivity = false}: Props = $props()
|
||||||
|
|
||||||
const thunk = $thunks[event.id]
|
const thunk = $derived($thunks[event.id])
|
||||||
const deleted = deriveIsDeleted(repository, event)
|
const deleted = deriveIsDeleted(repository, event)
|
||||||
const path = makeSpacePath(url, "threads", event.id)
|
const path = makeSpacePath(url, "threads", event.id)
|
||||||
const filters = [{kinds: [COMMENT], "#E": [event.id]}]
|
const filters = [{kinds: [COMMENT], "#E": [event.id]}]
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
: publishThunk((thunk as Thunk).request)
|
: 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 ps = $derived(Object.values($status))
|
||||||
const canCancel = $derived(ps.length === 0 && $userSettingValues.send_delay > 0)
|
const canCancel = $derived(ps.length === 0 && $userSettingValues.send_delay > 0)
|
||||||
const isFailure = $derived(!canCancel && ps.every(s => [Failure, Timeout].includes(s.status)))
|
const isFailure = $derived(!canCancel && ps.every(s => [Failure, Timeout].includes(s.status)))
|
||||||
|
|||||||
Reference in New Issue
Block a user