Skip to content

Commit

Permalink
Update src/hooks/useSelector.js
Browse files Browse the repository at this point in the history
Co-authored-by: nightpool <nightpool@users.noreply.github.com>
  • Loading branch information
timdorr and nightpool committed Dec 3, 2020
1 parent 878271f commit b53d184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useSelector.js
Expand Up @@ -34,7 +34,7 @@ function useSelectorWithStoreAndSubscription(
latestSubscriptionCallbackError.current
) {
const newSelectedState = selector(storeState)
// ensure latest selected state is reused so that a curtom equality function can result in identical references
// ensure latest selected state is reused so that a custom equality function can result in identical references
if (
latestSelectedState.current === undefined ||
!equalityFn(newSelectedState, latestSelectedState.current)
Expand Down

0 comments on commit b53d184

Please sign in to comment.