docs: add badge for callOnce utility

Resolves #24950
This commit is contained in:
Sébastien Chopin 2023-12-29 12:02:22 +01:00 committed by GitHub
parent e084ee7b3a
commit 792cf67137
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,8 @@
--- ---
title: "callOnce" title: "callOnce"
description: "Run a given function or block of code once during SSR or CSR." description: "Run a given function or block of code once during SSR or CSR."
navigation:
badge: New
links: links:
- label: Source - label: Source
icon: i-simple-icons-github icon: i-simple-icons-github
@ -8,6 +10,10 @@ links:
size: xs size: xs
--- ---
::callout{icon="i-ph-info-duotone" color="blue"}
This utility is available since [Nuxt v3.9](/blog/v3-9).
::
## Purpose ## Purpose
The `callOnce` function is designed to execute a given function or block of code only once during: The `callOnce` function is designed to execute a given function or block of code only once during: