mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
docs: fix typo in composable name (#29910)
This commit is contained in:
parent
3409073b0b
commit
4bd81af2bd
@ -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', {
|
||||||
|
Loading…
Reference in New Issue
Block a user