Skip to content
This repository was archived by the owner on Apr 6, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/content/1.getting-started/6.data-fetching.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>
Expand Down