Pinia: How to dynamically add new enteries to store state #1903
Unanswered
aliraza944
asked this question in
Help and Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a use case with the pinia in vue 3 that I want to dynamically add new entries to the pinia store using the store actions. for example if I have a state called firstName and if I call a the action of the store it should add new state called lastName in the state as well. Here is what I have tried
The new state should include the fistName and lastName fields.
Beta Was this translation helpful? Give feedback.
All reactions