From 1955cd9f73640157ea2c0d8d796266cf3d97aa79 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 28 Apr 2019 14:00:25 -0400 Subject: [PATCH] Fixed: Improve performance of search input selector --- .../src/Components/Page/Header/ArtistSearchInputConnector.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/Components/Page/Header/ArtistSearchInputConnector.js b/frontend/src/Components/Page/Header/ArtistSearchInputConnector.js index e42131faa..4303d9774 100644 --- a/frontend/src/Components/Page/Header/ArtistSearchInputConnector.js +++ b/frontend/src/Components/Page/Header/ArtistSearchInputConnector.js @@ -2,6 +2,7 @@ import { connect } from 'react-redux'; import { push } from 'connected-react-router'; import { createSelector } from 'reselect'; import createAllArtistSelector from 'Store/Selectors/createAllArtistSelector'; +import createDeepEqualSelector from 'Store/Selectors/createDeepEqualSelector'; import createTagsSelector from 'Store/Selectors/createTagsSelector'; import ArtistSearchInput from './ArtistSearchInput'; @@ -16,7 +17,6 @@ function createCleanArtistSelector() { sortName, images, foreignArtistId, - // alternateTitles, tags = [] } = artist; @@ -35,7 +35,7 @@ function createCleanArtistSelector() { } function createMapStateToProps() { - return createSelector( + return createDeepEqualSelector( createCleanArtistSelector(), (artists) => { return {