R
Size: a a a
R
AP
AP
R
КС
let stopLoading = false;
function load() {
fetch('/api/endpoint/')
.then(res => res.json())
.then(json => {
somedata = json;
if(!stopLoading)
setTimeout(load, 2000);
});
}
onMount(load);
КС
КС
AP
R
КС
KM
R
КС
КС
КС
R
R
КС
R
let stopLoading = false;
function load() {
fetch('/api/endpoint/')
.then(res => res.json())
.then(json => {
somedata = json;
if(!stopLoading)
setTimeout(load, 2000);
});
}
onMount(load);
R