mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-19 01:45:53 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
parent
c699189f77
commit
40974b036a
@ -74,8 +74,9 @@ Note that `callOnce` doesn't return anything. You should use [`useAsyncData`](/d
|
|||||||
callOnce (key?: string, fn?: (() => any | Promise<any>), options?: CallOnceOptions): Promise<void>
|
callOnce (key?: string, fn?: (() => any | Promise<any>), options?: CallOnceOptions): Promise<void>
|
||||||
callOnce(fn?: (() => any | Promise<any>), options?: CallOnceOptions): Promise<void>
|
callOnce(fn?: (() => any | Promise<any>), options?: CallOnceOptions): Promise<void>
|
||||||
```
|
```
|
||||||
|
|
||||||
## Parameters
|
## 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.
|
- `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.
|
- `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`)
|
- `options`: Setup the mode, either to re-execute on navigation (`navigation`) or just once for lifetime of the app (`render`)
|
||||||
|
Loading…
Reference in New Issue
Block a user