mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-19 15:10:58 +00:00
docs: added immediate: false
in the appropriate example (#25224)
This commit is contained in:
parent
4893d19db8
commit
74824f93ec
@ -382,7 +382,9 @@ With that, you will need both the `status` to handle the fetch lifecycle, and `e
|
|||||||
|
|
||||||
```vue
|
```vue
|
||||||
<script setup lang="ts">
|
<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>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
Loading…
Reference in New Issue
Block a user