docs: fix typo in composable name (#29910)

This commit is contained in:
crisarji 2024-11-14 04:48:11 -06:00 committed by GitHub
parent 3409073b0b
commit 4bd81af2bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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', {