mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 07:32:01 +00:00
docs: fix typo in component migration guide (#5284)
This commit is contained in:
parent
e6b48c2b20
commit
59e54ee7a9
@ -52,7 +52,7 @@ With Nuxt 3, you can perform this data fetching using composables in your `setup
|
||||
// Define params wherever, through `defineProps()`, `useRoute()`, etc.
|
||||
const { data: post, refresh } = await useAsyncData('post', () => $fetch(`https://api.nuxtjs.dev/posts/${params.id}`) )
|
||||
// Or instead - useFetch is a convenience wrapper around useAsyncData when you're just performing a simple fetch
|
||||
const { data: post, refresh } = await useFetch(`https://api.nuxtjs.dev/posts/${paramsÌ.id}`)
|
||||
const { data: post, refresh } = await useFetch(`https://api.nuxtjs.dev/posts/${params.id}`)
|
||||
</script>
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user