网页
综合
更新时间 2026-11-16 03:45:50
useState · Nuxt Composables v4
自动蜘蛛
nuxt.com
正文约 773 字
If you don't need your state to be deeply reactive, you can combine useState with shallowRef. This can improve performance when your state contains large objects and arrays.
This error occurs when you try to store a non-serializable payload with useState, such as class instances.
If you want to store class instances with useState that are not supported by Nuxt, you can use definePayloadPlugin to add a custom serializer and deserializer for your classes.
The useServerSeoMeta composable lets you define your site's SEO meta tags as a flat object with full TypeScript support.
Nuxt uses ofetch to expose globally the $fetch helper for making HTTP requests.
Stay updated on new releases and features, guides, and community updates.
Copyright © 2016-2026 Nuxt - MIT License
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。