diff --git a/app/screens/home/search/search.tsx b/app/screens/home/search/search.tsx index 7209dc413..445160778 100644 --- a/app/screens/home/search/search.tsx +++ b/app/screens/home/search/search.tsx @@ -374,6 +374,19 @@ const SearchScreen = ({teamId, teams, crossTeamSearchEnabled}: Props) => { } }, [isFocused]); + useDidUpdate(() => { + if (isFocused && lastSearchedValue && showResults) { + // requestAnimationFrame for smooth UI updates + requestAnimationFrame(() => { + handleSearch(searchTeamId, lastSearchedValue); + }); + } + + // Only watch isFocused to re-run search when screen comes back into focus + // Removed lastSearchedValue, showResults, handleSearch, searchTeamId from dependencies + // to prevent duplicate search calls (these values are updated by handleSearch itself) + }, [isFocused]); + const handleEnterPressed = useCallback(() => { const topScreen = NavigationStore.getVisibleScreen(); if (topScreen === Screens.HOME && isFocused) {