LAB: Spinner, Cart & Strore Subscriptions

The loading spinner one is quite simple. We already have a state item that's set to true anytime an async operation is carried out. This state item is called showLoader.

Cart items count is also simple -- just the length of the array as shown in the code below.

Furthermore, we need to create global subscriptions to our store mutations. That's the best way to listen to notifications mutations like ADD_PRODUCT_SUCCESS. When these notifications come in, we need to let the user know by showing a toaster.