From c51482e04eaaebb8ba1452d4e8a9373d876edff2 Mon Sep 17 00:00:00 2001 From: Denozordec Date: Fri, 10 Apr 2026 16:47:15 +0700 Subject: [PATCH] Improve alias filter change handling in Svelte components - Added a check to prevent unnecessary updates when the selected alias remains the same, enhancing performance. - Updated the alias filter select component to utilize the `untrack` function for more efficient value change handling. - Streamlined the alias filter change logic across main and users pages to ensure consistent behavior. --- .../lib/components/alias-filter-select.svelte | 18 ++++++++++++------ web/src/routes/+page.svelte | 2 ++ web/src/routes/users/+page.svelte | 2 ++ 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/web/src/lib/components/alias-filter-select.svelte b/web/src/lib/components/alias-filter-select.svelte index 4de2926..7828294 100644 --- a/web/src/lib/components/alias-filter-select.svelte +++ b/web/src/lib/components/alias-filter-select.svelte @@ -1,4 +1,6 @@ @@ -23,11 +34,6 @@