From 5b3b2a83b95d7d64259e544329ee14bf4706e610 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Fri, 16 Aug 2024 00:16:23 +0200 Subject: [PATCH] chore(playground): fix database reactivity --- playground/app/pages/database.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/playground/app/pages/database.vue b/playground/app/pages/database.vue index 81dae313..601b5477 100644 --- a/playground/app/pages/database.vue +++ b/playground/app/pages/database.vue @@ -4,7 +4,9 @@ const newTodo = ref('') const newTodoInput = ref(null) const toast = useToast() -const { data: todos } = await useFetch('/api/todos') +const { data: todos } = await useFetch('/api/todos', { + deep: true +}) async function addTodo() { if (!newTodo.value.trim()) return