fix: remove history state fallback + asyncdata (#687)
This commit is contained in:
parent
451c4a0701
commit
72ce43dde9
4 changed files with 10 additions and 19 deletions
|
@ -15,7 +15,7 @@ const publishWidget = ref()
|
|||
|
||||
const { data: status, pending, refresh: refreshStatus } = useAsyncData(
|
||||
`status:${id}`,
|
||||
async () => (window.history.state?.status as Status | undefined) ?? await fetchStatus(id),
|
||||
() => fetchStatus(id),
|
||||
{ watch: [isMastoInitialised], immediate: isMastoInitialised.value },
|
||||
)
|
||||
const masto = useMasto()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue