Answer the question
In order to leave comments, you need to log in
How to pass data through vuex to router?
Good afternoon. With the help of getters, data is not passed to the router-link and the data is not written to the array. If you make a basket on the same page as the catalog, then everything is perfectly written into the basket array. Can you provide some implementation examples? In the router itself, I indicated the transfer of props.
Answer the question
In order to leave comments, you need to log in
data is not sent to router-link
If you make a basket on the same page as the catalog, then everything is perfectly written into the basket array.
router-link
make a button, by clicking on which the corresponding action or mutation will immediately be called. router-link
pass an array of items added to the cart to the cart component. If so, don't pass anything, let the cart component pick up the data directly from vuex.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question