We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa10eb9 commit 810243eCopy full SHA for 810243e
src/components/data/SoftwareDownload.svelte
@@ -54,15 +54,18 @@
54
}
55
56
let buildsLoading = $state(false);
57
+ let buildsPromise: Promise<[] | void> = Promise.resolve([]);
58
watch(
59
() => version,
60
(ver, oldVer) => {
61
// Only handle changes, not initial page load where builds are prerendered on server.
62
if (oldVer !== undefined && ver !== oldVer) {
- buildsLoading = true;
63
- fetchBuildsOrError({ value: project }, !isStable).then((result) => {
64
- builds = result;
65
- buildsLoading = false;
+ buildsPromise = buildsPromise.then(() => {
+ buildsLoading = true;
+ fetchBuildsOrError({ value: project }, !isStable).then((result) => {
66
+ builds = result;
67
+ buildsLoading = false;
68
+ });
69
});
70
71
0 commit comments