From 36e32ee4a667ce3ef1529219c91c2fccab8429ab Mon Sep 17 00:00:00 2001 From: Saeid Zareie Date: Thu, 16 Jan 2025 08:23:43 +0330 Subject: [PATCH] docs: adding missing params --- docs/3.api/3.utils/call-once.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/3.api/3.utils/call-once.md b/docs/3.api/3.utils/call-once.md index 269d085026..ccc26c0bd9 100644 --- a/docs/3.api/3.utils/call-once.md +++ b/docs/3.api/3.utils/call-once.md @@ -86,6 +86,7 @@ type CallOnceOptions = { ## 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 the lifetime of the app (`render`). Defaults to `render`. - `render`: Executes once during initial render (either SSR or CSR) - Default mode - `navigation`: Executes once during initial render and once per subsequent client-side navigation