Try this, after any api call function or in $(document).ready() function.
window.loaction.reload();
You can use like thisβ¦.
$.ajax({
url: "apiurl",
type: "GET",
contentType: "application/json;charset=utf-8",
dataType: "json",
success: function (data) {
.....Do anything.......
window.location.reload();
}
});
This trick solved my same issue.
You May Also Like:-