fix: fix vue/no-ref-as-operand and vue/return-in-computed-property ESLint errors (#2679)

This commit is contained in:
TAKAHASHI Shuuji 2024-03-11 19:53:25 +09:00 committed by GitHub
parent ed8a1811cc
commit 3b1a66c93c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 14 additions and 10 deletions

View file

@ -21,7 +21,7 @@ const { data: status, pending, refresh: refreshStatus } = useAsyncData(
)
const { client } = useMasto()
const { data: context, pending: pendingContext, refresh: refreshContext } = useAsyncData(
`context:${id}`,
`context:${id.value}`,
async () => client.value.v1.statuses.$select(id.value).context.fetch(),
{ watch: [isHydrated], immediate: isHydrated.value, lazy: true, default: () => shallowRef() },
)