feat: harden public install guide loading

This commit is contained in:
3252a8
2026-05-22 23:29:58 +03:00
parent 40414264be
commit 17224b4f74
4 changed files with 95 additions and 3 deletions
@@ -21,7 +21,12 @@ export function createInstallGuidesStore({ api, t, showToast }) {
});
if (!force && snapshot?.loaded) return snapshot;
const promise = (async () => {
state.update((s) => ({ ...s, loading: true, error: "" }));
state.update((s) => ({
...s,
loading: true,
loaded: force ? false : s.loaded,
error: "",
}));
try {
const response = await api(path);
const next = {