Documentación offline Nuxt main

NUXTE7009

main Documentación oficial Licencia MITDescargado el 2026-08-02

En esta página

E7009#

useState() was called with a key that is not a string. The key identifies the shared state across the app and in the hydration payload, so it must be a non-empty string.

Resolution#

const counter = useState('counter', () => 0)

::read-more{to="/docs/api/composables/use-state"} ::