docs: fix typo in composable name (#29910)

This commit is contained in:
crisarji 2024-11-14 04:48:11 -06:00 committed by Daniel Roe
parent a503b04f58
commit b1c30bf40e
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

View File

@ -54,7 +54,7 @@ const { data } = await useAsyncData('todos', () => $fetch('/api/todos'))
const newTodo = ref('') const newTodo = ref('')
const previousTodos = ref([]) const previousTodos = ref([])
// Access to the cached value of useFetch in todos.vue // Access to the cached value of useAsyncData in todos.vue
const { data: todos } = useNuxtData('todos') const { data: todos } = useNuxtData('todos')
const { data } = await useFetch('/api/addTodo', { const { data } = await useFetch('/api/addTodo', {