Back to Nuxt

NUXT_E7010

docs/errors/e7010.md

4.5.2286 B
Original Source

E7010

callOnce() was called with a key that is not a string. The key is used to track whether the function has already run, so it must be a non-empty string.

Resolution

ts
await callOnce('setup', () => {
  // runs once
})

::read-more{to="/docs/api/utils/call-once"} ::