Accessing vue composable instance in function?
Lets say I have a simple vue composable function which I’d like to reuse many times throughout my app. In this case, it’s got one reactive property (products, an array containing a list of products), and one method "addProduct" which pushes a new element to the array. export function useCart(){ const products = ref([]) const… Read More Accessing vue composable instance in function?