Loading indicator with every async request — Vue edition

An example of how you can add a global loading indicator to your Vue application that will give feedback to your users on every async HTTP request.

Setup a loader store module

First of all, let’s create a loader store module that will be responsible for managing loader’s state. Code is as follows: