A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
mobile: skip rendering if query changed during search
Ammar Ahmedad056e0e3bfc
diff --git a/apps/mobile/app/screens/search/index.tsx b/apps/mobile/app/screens/search/index.tsxindex e8845c3af..a6688c8ad 100644--- a/apps/mobile/app/screens/search/index.tsx+++ b/apps/mobile/app/screens/search/index.tsx@@ -90,7 +90,7 @@ export const Search = ({ route, navigation }: NavigationProps<"Search">) => {default:results = undefined;}-+ if (currentQuery.current !== query) return;if (!results) {setSearchStatus(strings.noResultsFound(query));setLoading(false);@@ -102,6 +102,7 @@ export const Search = ({ route, navigation }: NavigationProps<"Search">) => {);if (currentQuery.current !== query) return;await results.item(0);+ if (currentQuery.current !== query) return;setResults(results);if (results.placeholders?.length === 0) {setSearchStatus(strings.noResultsFound(query));