Remove redundant alias filter effect from Svelte components to streamline data handling
Publish telemt-api gateway Docker image / test (push) Successful in 26s
Publish telemt-api gateway Docker image / build-and-push (push) Successful in 2m24s

- Eliminated the `$effect` that applied alias changes in both the main and users pages, improving performance and reducing unnecessary checks.
- This change enhances the clarity of the alias filter logic and maintains the focus on essential data updates.
This commit is contained in:
Denozordec
2026-04-10 16:02:22 +07:00
parent af37331284
commit 12539a22ae
2 changed files with 0 additions and 10 deletions
-5
View File
@@ -251,11 +251,6 @@ async function handleAliasFilterChange(nextAlias: string) {
void load();
});
$effect(() => {
if (typeof window === 'undefined') return;
void applyAliasIfChanged(aliasFilter);
});
let staleSeconds = $derived.by(() =>
lastSuccessAtMs == null ? null : Math.max(0, Math.floor((nowMs - lastSuccessAtMs) / 1000))
);
-5
View File
@@ -151,11 +151,6 @@
void load();
});
$effect(() => {
if (typeof window === 'undefined') return;
void applyAliasIfChanged(aliasFilter);
});
let staleSeconds = $derived.by(() =>
lastSuccessAtMs == null ? null : Math.max(0, Math.floor((nowMs - lastSuccessAtMs) / 1000))
);