Back to Nuxt

NUXT_E7009

docs/errors/e7009.md

4.5.2305 B
Original Source

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

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

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