Skip to content

Commit

Permalink
react-redux types: Provide just PerAccountState in plain connect
Browse files Browse the repository at this point in the history
With this, modulo fixmes, our React components are now sorted out
into per-account and global.
  • Loading branch information
gnprice committed Nov 2, 2021
1 parent 00b92c3 commit eeb9648
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/react-redux.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ export type OwnProps<C, -SP, -D> = BoundedDiff<
*/
// prettier-ignore
export function connect<SP, P, C: ComponentType<P>>(
// TODO(#5006): should be PerAccountState
mapStateToProps?: (GlobalState, OwnProps<C,
mapStateToProps?: (PerAccountState, OwnProps<C,
// Error "property `foo` is missing"? Add to inner component's props.
SP, Dispatch>) => SP,
): C => ComponentType<$ReadOnly<OwnProps<C, SP, Dispatch>>> {
Expand Down

0 comments on commit eeb9648

Please sign in to comment.