Exercise 2 | 20 mins

✅ When complete, you should be able to see all the products in the ProductStore state in the devtools. When you alter any of the products in the devtools, it should alter the output on the page.

pinia-access-products-from-store.gif

You should see the same for the cart.

cart-store.gif

Bonus!

If you succeed using de-structuring the first time around, then try it without the de-structuring and vice-versa. Hint: Don’t forget to use storeToRefs.