Fixed unnecessary rerender of search results on focus

This commit is contained in:
squidfunk 2020-02-18 09:11:57 +01:00
parent d21da8d522
commit af50d5b177

View File

@ -63,6 +63,7 @@ export function mountSearchQuery(
/* Subscribe worker to search query */ /* Subscribe worker to search query */
query$ query$
.pipe( .pipe(
distinctUntilKeyChanged("value"),
map<SearchQuery, SearchQueryMessage>(({ value }) => ({ map<SearchQuery, SearchQueryMessage>(({ value }) => ({
type: SearchMessageType.QUERY, type: SearchMessageType.QUERY,
data: value data: value