I have come up with an implementation of access control for a nativescript app but the android back button breaks it.
Scenario:
How can I fix this issue? What is the propper way to stay logged-in in a nativescript-vue app?
Here is a playground sample
It happens sometimes with global variables, I didn't manage to track how exactly but a hot fix is to use a function.
function isLoaddedIn() {
return ApplicationSettings.getString('is_logged_in') == 'true';
}
new Vue({
render: h => h('frame', [h(isLoaddedIn() ? In : Out)])
}).$start()