Skip to content

Commit

Permalink
removed a redundant object creation when using forceUpdate (#1567)
Browse files Browse the repository at this point in the history
  • Loading branch information
vzaidman committed Apr 15, 2020
1 parent a6a7523 commit 79f3d13
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 79f3d13

Please sign in to comment.