Skip to content

Commit bb6ae45

Browse files
authored
removed a redundant object creation when using forceUpdate (reduxjs#1567)
1 parent 7bfa2ce commit bb6ae45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/hooks/useSelector.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function useSelectorWithStoreAndSubscription(
6666
latestSubscriptionCallbackError.current = err
6767
}
6868

69-
forceRender({})
69+
forceRender()
7070
}
7171

7272
subscription.onStateChange = checkForUpdates

0 commit comments

Comments
 (0)