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 */
query$
.pipe(
distinctUntilKeyChanged("value"),
map<SearchQuery, SearchQueryMessage>(({ value }) => ({
type: SearchMessageType.QUERY,
data: value