Skip to content

Commit 5b3b2a8

Browse files
committed
chore(playground): fix database reactivity
1 parent 7a3627c commit 5b3b2a8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

playground/app/pages/database.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ const newTodo = ref('')
44
const newTodoInput = ref(null)
55
66
const toast = useToast()
7-
const { data: todos } = await useFetch('/api/todos')
7+
const { data: todos } = await useFetch('/api/todos', {
8+
deep: true
9+
})
810
911
async function addTodo() {
1012
if (!newTodo.value.trim()) return

0 commit comments

Comments
 (0)