This blog post is about how to use state management, spinner with conditions, and modal dialogs when saving data in VUE. How these works, we will explore along an implementation in the #BlueCloudMirror project. Maybe this can save you some time, if you plan to do the same.
Let’s start with my motivation, we want to improve our #BlueCloudMirror game UI. If you saved your scores data in the previous version, you were routed back to start game page. You received no information, if storing your data was successful in the highscores list.
In the new UI you can see the saving progress and you get confirmation when your data is saved, as you can see in the gif below.
To understand how this works in VUE, we need to touch the following topics: