i'm working on a nativescript project with radlistview. when i navigate to the page with the radlistview, it shows the items. when i leave the page and go back, instead of reloading new items, it still shows the previous items.
how can i achieve this please.
this is the code i use to populate the radlistview
fetch("https://example.com/skog/searchResults.php?search=" + searchedSkill).then((response) => response.json()).then((res) => {
viewModel.set("items", res.items);
viewModel.set("isBusy", false);
}).catch((err) => {
});
i'm using nativescript core