Skip to content

Commit

Permalink
removed a redundant object creation when using forceUpdate (reduxjs#1567
Browse files Browse the repository at this point in the history
)
  • Loading branch information
vzaidman committed Apr 15, 2020
1 parent 7bfa2ce commit bb6ae45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useSelector.js
Expand Up @@ -66,7 +66,7 @@ function useSelectorWithStoreAndSubscription(
latestSubscriptionCallbackError.current = err
}

forceRender({})
forceRender()
}

subscription.onStateChange = checkForUpdates
Expand Down

0 comments on commit bb6ae45

Please sign in to comment.