docs: fix code highlighting (#8057)

This commit is contained in:
Israel Ortuño 2022-10-09 01:07:58 +02:00 committed by GitHub
parent c404cb1be4
commit edc44aa064
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ This composable behaves identically to `useFetch` with the `lazy: true` option s
```vue
<template>
<!-- you'll need to handle a loading state -->
<!-- you will need to handle a loading state -->
<div v-if="pending">
Loading ...
</div>
@ -59,7 +59,7 @@ This composable behaves identically to `useFetch` with the `lazy: true` option s
<script setup>
const { pending, data: posts } = useLazyFetch('/api/posts')
watch(posts, (newPosts) => {
// Because posts starts out null, you won't have access
// Because posts starts out null, you will not have access
// to its contents immediately, but you can watch it.
})
</script>