Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix(docs): Replace watch with watchEffect. Add additional details to clarify Account.vue file. (#27843)

Hichem Dahie474541f4121
diff --git a/apps/docs/content/guides/getting-started/tutorials/with-vue-3.mdx b/apps/docs/content/guides/getting-started/tutorials/with-vue-3.mdx
index 27778b2a6b2..09f6924a8c8 100644
--- a/apps/docs/content/guides/getting-started/tutorials/with-vue-3.mdx
+++ b/apps/docs/content/guides/getting-started/tutorials/with-vue-3.mdx
@@ -324,7 +324,7 @@ const uploadAvatar = async (evt) => {
}
}
-watch(path, () => {
+watchEffect(() => {
if (path.value) downloadImage()
})
</script>
@@ -365,6 +365,9 @@ And then we can add the widget to the Account page in `src/components/Account.vu
<script>
// Import the new component
import Avatar from './Avatar.vue'
+//...
+const avatar_url = ref('')
+//...
</script>
<template>