Add FIXMEs for the withRouter workaround

Because of: https://github.com/ReactTraining/react-router/issues/5795
We have to use withRouter which triggers a lot of extra renderings.
This means that until the bug is fixed we have to use withRouter and
some memoization to make sure we don't recalc everything all the time.
master
Tom Hacohen 7 years ago
parent 50a9094a8b
commit 97eaa756fe

@ -66,6 +66,7 @@ const mapStateToProps = (state: StoreState) => {
};
};
// FIXME: withRouter is only needed here because of https://github.com/ReactTraining/react-router/issues/5795
export default withRouter(connect(
mapStateToProps
)(Root));

@ -145,6 +145,7 @@ const mapStateToProps = (state: StoreState, props: PropsType) => {
};
};
// FIXME: withRouter is only needed here because of https://github.com/ReactTraining/react-router/issues/5795
export default withRouter(connect(
mapStateToProps
)(SyncGate));

Loading…
Cancel
Save