Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Readonly reactive variables in pinia store - Nuxt
N
Nuxt
•
8mo ago
•
13 replies
zigglearner1235
Readonly reactive variables in pinia store
I am trying to mark a reactive variable in my pinia store as readonly
(
) so it
's only changed via setter but doing that yields a warning as
[Vue warn] Set operation on key "value" failed: target is readonly.
[Vue warn] Set operation on key "value" failed: target is readonly.
on initial page load
.
How can I solve this
?
Nuxt
Join
Nuxt Community Chat Server
31,686
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
reactive css variables
N
Nuxt / ❓・help
15mo ago
delete pinia store data.
N
Nuxt / ❓・help
2y ago
Initializing a pinia store
N
Nuxt / ❓・help
2y ago
Pinia Store init function
N
Nuxt / ❓・help
2y ago