refactor: update no reactivity transform changes (#2639)

This commit is contained in:
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 embeddedMediaPreference = usePreferences('experimentalEmbeddedMedia')
const allowEmbeddedMedia = computed(() => status.card?.html && embeddedMediaPreference) const allowEmbeddedMedia = computed(() => status.card?.html && embeddedMediaPreference.value)
</script> </script>
<template> <template>

View file

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

View file

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