bikehopper / bikehopper-ui

Friendly bike+transit directions (frontend)
Other
26 stars 1 forks source link

Selector in SearchAutocompleteDropdown should memoize features #344

Closed graue closed 6 days ago

graue commented 4 months ago

I got this console warning from the selector in SearchAutocompleteDropdown:

Selector unknown returned a different result when called with the same parameters. This can lead to unnecessary rerenders. Selectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization

graue commented 6 days ago

Fixed by #385