Key-Value Local Storage in a Vue.js NativeScript App With Vuex

See the original posting on DZone Python

If you’ve ever built a Vue.js application, whether that be web or mobile, you’ve probably come across Vuex when searching for data storage-related information. When it comes to the web, the common tutorial around Vuex includes browser local storage or similar, where Vuex handles all of the state rules between components.

With NativeScript supporting Vue.js, this opens the door to what we can do for mobile development, but how do we handle data under these circumstances? NativeScript doesn’t use a browser so local storage isn’t an option.