docs: added immediate: false in the appropriate example (#25224)

This commit is contained in:
Bertil Johannes Ipsen 2024-01-16 11:03:03 +01:00 committed by GitHub
parent 4893d19db8
commit 74824f93ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -382,7 +382,9 @@ With that, you will need both the `status` to handle the fetch lifecycle, and `e
```vue
<script setup lang="ts">
const { data, error, execute, pending, status } = await useLazyFetch('/api/comments')
const { data, error, execute, pending, status } = await useLazyFetch('/api/comments', {
immediate: false
})
</script>
<template>