From af50d5b177b590fad1290120ebbe6d43052156fe Mon Sep 17 00:00:00 2001 From: squidfunk Date: Tue, 18 Feb 2020 09:11:57 +0100 Subject: [PATCH] Fixed unnecessary rerender of search results on focus --- src/assets/javascripts/components/search/query/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/assets/javascripts/components/search/query/index.ts b/src/assets/javascripts/components/search/query/index.ts index 34bbc0ea8..2302ef16d 100644 --- a/src/assets/javascripts/components/search/query/index.ts +++ b/src/assets/javascripts/components/search/query/index.ts @@ -63,6 +63,7 @@ export function mountSearchQuery( /* Subscribe worker to search query */ query$ .pipe( + distinctUntilKeyChanged("value"), map(({ value }) => ({ type: SearchMessageType.QUERY, data: value