Pinia adds its own properties to the store? #1005
Answered
by
angelhdzdev
eric-2d
asked this question in
Help and Questions
Replies: 1 comment 1 reply
-
axios.post(resource, this.store.$state) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
eric-2d
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I recently switched from vuex and was migrating along just fine until I reached my final step.
Which is persisting a store to my SQl db, literally
axios.post(resource, this.store)
My DB rejected the insert because of
$id
and_isOptionsAPI
columns don't exist in my tableI understand pinia might need those internally, but the fact that they are added without my knowledge feels like it's polluting the state.
What am I to do? simply
delete store.$id
anddelete store._isOptionsAPI
?What if other internal variables are introduced and break my app?
Beta Was this translation helpful? Give feedback.
All reactions