From 67d8b9e36571cf2be8fccad2371ed53ffa1e96b6 Mon Sep 17 00:00:00 2001 From: Klesti Selimaj Date: Sat, 4 Apr 2026 22:23:34 +0200 Subject: [PATCH] Search delay --- src/components/ModsSection.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/ModsSection.tsx b/src/components/ModsSection.tsx index b301a12..f323cce 100644 --- a/src/components/ModsSection.tsx +++ b/src/components/ModsSection.tsx @@ -54,7 +54,10 @@ const ModsSection: React.FC = ({ version }) => { } } }; - loadMods(); + + const id = setTimeout(loadMods, 800); + + return () => clearTimeout(id); }, [activeTab, version.id, searchQuery]); const handleToggleMod = async (modId: string) => {