I don’t want to send requests every time I go to page I want it to load once when app starts,
at this time I’m checking if listview data is null and after this send request to server if I dont have data in listview, so it helps me to send request once.
but my problem is when logout from user 1 and then login with user 2
user 1 data is showing.
so I need to clear all the data of all pages when logout, but I cant figure it out how to do this.
I have more pages then one and I cant clear (set it to null) main page data for example if I’m doing logout from contacts page.
I’m on nativescript core, I’m using data binding, mvvm structure.