NUXT_E7008

callOnce fn must be a function.

E7008

callOnce() received a non-function fn argument. The value to run once must be a function so Nuxt can execute it a single time and skip it on subsequent calls.

Resolution

await callOnce('setup', () => {
  // runs once
})
Read more in Docs > API > Utils > Call Once.
Was this helpful?