From 12539a22aef2c4c6b8d596c1573c2f4698fca461 Mon Sep 17 00:00:00 2001 From: Denozordec Date: Fri, 10 Apr 2026 16:02:22 +0700 Subject: [PATCH] Remove redundant alias filter effect from Svelte components to streamline data handling - 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. --- web/src/routes/+page.svelte | 5 ----- web/src/routes/users/+page.svelte | 5 ----- 2 files changed, 10 deletions(-) diff --git a/web/src/routes/+page.svelte b/web/src/routes/+page.svelte index 94ccec2..4357434 100644 --- a/web/src/routes/+page.svelte +++ b/web/src/routes/+page.svelte @@ -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)) ); diff --git a/web/src/routes/users/+page.svelte b/web/src/routes/users/+page.svelte index c86bbde..fbf74ad 100644 --- a/web/src/routes/users/+page.svelte +++ b/web/src/routes/users/+page.svelte @@ -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)) );