From 40974b036a9c746f449e621b0b75032fa7e544b3 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Wed, 15 Jan 2025 15:59:33 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- docs/3.api/3.utils/call-once.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/3.api/3.utils/call-once.md b/docs/3.api/3.utils/call-once.md index da41e59a42..27bb973b0f 100644 --- a/docs/3.api/3.utils/call-once.md +++ b/docs/3.api/3.utils/call-once.md @@ -74,8 +74,9 @@ Note that `callOnce` doesn't return anything. You should use [`useAsyncData`](/d callOnce (key?: string, fn?: (() => any | Promise), options?: CallOnceOptions): Promise callOnce(fn?: (() => any | Promise), options?: CallOnceOptions): Promise ``` + ## Parameters -* `key`: A unique key ensuring that the code is run once. If you do not provide a key, then a key that is unique to the file and line number of the instance of `callOnce` will be generated for you. -* `fn`: The function to run once. This function can also return a `Promise` and a value. -* `options`: Setup the mode, either to re-execute on navigation (`navigation`) or just once for lifetime of the app (`render`) +- `key`: A unique key ensuring that the code is run once. If you do not provide a key, then a key that is unique to the file and line number of the instance of `callOnce` will be generated for you. +- `fn`: The function to run once. This function can also return a `Promise` and a value. +- `options`: Setup the mode, either to re-execute on navigation (`navigation`) or just once for lifetime of the app (`render`)