fix: refresh status after edit (#2032)
This commit is contained in:
parent
c7b77216c1
commit
ccf115ca4c
3 changed files with 13 additions and 3 deletions
|
@ -16,7 +16,7 @@ const main = ref<ComponentPublicInstance | null>(null)
|
|||
|
||||
const { data: status, pending, refresh: refreshStatus } = useAsyncData(
|
||||
`status:${id}`,
|
||||
() => fetchStatus(id),
|
||||
() => fetchStatus(id, true),
|
||||
{ watch: [isHydrated], immediate: isHydrated.value, default: () => shallowRef() },
|
||||
)
|
||||
const { client } = $(useMasto())
|
||||
|
@ -83,6 +83,7 @@ onReactivated(() => {
|
|||
:newer="context?.ancestors.at(-1)"
|
||||
command
|
||||
style="scroll-margin-top: 60px"
|
||||
@refetch-status="refreshStatus()"
|
||||
/>
|
||||
<PublishWidget
|
||||
v-if="currentUser"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue