Skip to content

Commit

Permalink
chore(playground): fix database reactivity
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Aug 15, 2024
1 parent 7a3627c commit 5b3b2a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion playground/app/pages/database.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5b3b2a8

Please sign in to comment.