How to prevent conversion to reactive inside store and keep it as an object? #1383
-
Hey, I'm using Nuxt 3 with Pinia. Inside my store, I want to define a form schema to use it later inside my dynamic Like this:
Inside my vue file, I use the store like this:
The validation with veevalidate doesn't work and I get multiple warnings and errors, which is probably because When I assign the object to a plain variable, validation with veevalidate and yup works fine.
So the question is: How to keep 'rules' a plain object inside pinia store? How to also keep every sub-object of Thanks for any advice. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
you can use |
Beta Was this translation helpful? Give feedback.
you can use
markRaw()
from vue