Closed Sorryhx closed 1 month ago
In my opinion, it's messy when I want to destructure acitions from store at the same time as state. Because, I need to add a alone constant for storeToRefs and action destructuring. Why not destructure from useXXXStore direcly.
storeToRefs
useXXXStore
const { aciton, reactiveState } = someDestructureMethod(useXXXStore())
No response
Most of the time, it’s shorter to my déstructure. This would add new method to reduce from two lines to one. It’s something that can be built in user land for projects that need it thought
What problem is this solving
In my opinion, it's messy when I want to destructure acitions from store at the same time as state. Because, I need to add a alone constant for
storeToRefs
and action destructuring. Why not destructure fromuseXXXStore
direcly.Proposed solution
const { aciton, reactiveState } = someDestructureMethod(useXXXStore())
Describe alternatives you've considered
No response