Skip to content

Commit

Permalink
read fresh store state on dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed Jan 27, 2020
1 parent 32481c9 commit 0768b45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function useSelectorWithStoreAndSubscription(
if (!equalityFn(nextSelectedState, state.selectedState)) {
selectedState = nextSelectedState
// schedule another update
dispatch(state.storeState)
dispatch(store.getState())
}
}

Expand Down

0 comments on commit 0768b45

Please sign in to comment.