refactor: update no reactivity transform changes (#2639)

zio/stable
Joaquín Sánchez 2024-03-04 17:01:56 +01:00 committed by GitHub
parent 95e466146d
commit 70c7e93919
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ const hideAllMedia = computed(
},
)
const embeddedMediaPreference = usePreferences('experimentalEmbeddedMedia')
const allowEmbeddedMedia = computed(() => status.card?.html && embeddedMediaPreference)
const allowEmbeddedMedia = computed(() => status.card?.html && embeddedMediaPreference.value)
</script>
<template>

View File

@ -55,7 +55,7 @@ export function usePublish(options: {
)
})
watch(() => draft, () => {
watch(draft, () => {
if (failedMessages.value.length > 0)
failedMessages.value.length = 0
}, { deep: true })

View File

@ -9,7 +9,7 @@ const accountName = computed(() => toShortHandle(params.account as string))
const { t } = useI18n()
const { data: account, pending, refresh } = await useAsyncData(() => fetchAccountByHandle(accountName.value).catch(() => null), { immediate: import.meta.client, default: () => shallowRef() })
const relationship = computed(() => account ? useRelationship(account.value).value : undefined)
const relationship = computed(() => account.value ? useRelationship(account.value).value : undefined)
const userSettings = useUserSettings()