Could a feature (autoToRef) be implemented to automatically return (toRefs) when destructuring the state?
Author: danielpaz98Created Oct 12, 2021Updated May 12, 2026
Labelscontribution welcomediscussionfeature request
What problem is this solving
I actually came up with this because it is a bit annoying to add storeToRefs to each store if you want to destructuring
Proposed solution
I'm very new to this, it's the first time I do it, and while I was thinking how it could be implemented I found a repository where this function is better explained, I don't know if I can put the link?
Source: vuejs/pinia