mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +00:00
docs: fix typo in composable name (#29910)
This commit is contained in:
parent
a503b04f58
commit
b1c30bf40e
@ -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