Don't connect to the Redux store when not needed.
The subscription still costs something per update cycle even when the parameters are null or empty objects.
This commit is contained in:
parent
17121b2066
commit
e2176d0566
14 changed files with 14 additions and 80 deletions
|
@ -1,8 +1,3 @@
|
||||||
import { connect } from 'react-redux';
|
|
||||||
import IframeReact from './view';
|
import IframeReact from './view';
|
||||||
|
|
||||||
const select = state => ({});
|
export default IframeReact;
|
||||||
|
|
||||||
const perform = () => ({});
|
|
||||||
|
|
||||||
export default connect(select, perform)(IframeReact);
|
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
import { connect } from 'react-redux';
|
|
||||||
import AbandonedChannelPreview from './view';
|
import AbandonedChannelPreview from './view';
|
||||||
|
|
||||||
const select = (state, props) => ({});
|
export default AbandonedChannelPreview;
|
||||||
|
|
||||||
export default connect(select)(AbandonedChannelPreview);
|
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
import { connect } from 'react-redux';
|
|
||||||
import Expandable from './view';
|
import Expandable from './view';
|
||||||
|
|
||||||
export default connect(
|
export default Expandable;
|
||||||
null,
|
|
||||||
null
|
|
||||||
)(Expandable);
|
|
||||||
|
|
|
@ -1,11 +1,3 @@
|
||||||
import { connect } from 'react-redux';
|
|
||||||
import i18n from './view';
|
import i18n from './view';
|
||||||
|
|
||||||
const select = state => ({});
|
export default i18n;
|
||||||
|
|
||||||
const perform = () => ({});
|
|
||||||
|
|
||||||
export default connect(
|
|
||||||
select,
|
|
||||||
perform
|
|
||||||
)(i18n);
|
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
import { connect } from 'react-redux';
|
|
||||||
import LivestreamList from './view';
|
import LivestreamList from './view';
|
||||||
|
|
||||||
const select = (state) => ({});
|
export default LivestreamList;
|
||||||
|
|
||||||
export default connect(select)(LivestreamList);
|
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
import { connect } from 'react-redux';
|
|
||||||
import LoadingBarOneOff from './view';
|
import LoadingBarOneOff from './view';
|
||||||
|
|
||||||
const select = (state, props) => ({});
|
export default LoadingBarOneOff;
|
||||||
|
|
||||||
export default connect(select)(LoadingBarOneOff);
|
|
||||||
|
|
|
@ -1,11 +1,3 @@
|
||||||
import { connect } from 'react-redux';
|
|
||||||
import Tag from './view';
|
import Tag from './view';
|
||||||
|
|
||||||
const select = state => ({});
|
export default Tag;
|
||||||
|
|
||||||
const perform = () => ({});
|
|
||||||
|
|
||||||
export default connect(
|
|
||||||
select,
|
|
||||||
perform
|
|
||||||
)(Tag);
|
|
||||||
|
|
|
@ -1,8 +1,3 @@
|
||||||
import { connect } from 'react-redux';
|
|
||||||
import YoutubeBadge from './view';
|
import YoutubeBadge from './view';
|
||||||
|
|
||||||
const select = state => ({});
|
export default YoutubeBadge;
|
||||||
|
|
||||||
const perform = dispatch => ({});
|
|
||||||
|
|
||||||
export default connect(select, perform)(YoutubeBadge);
|
|
||||||
|
|
|
@ -1,9 +1,3 @@
|
||||||
import { connect } from 'react-redux';
|
|
||||||
import FourOhFourPage from './view';
|
import FourOhFourPage from './view';
|
||||||
|
|
||||||
const select = state => ({});
|
export default FourOhFourPage;
|
||||||
|
|
||||||
export default connect(
|
|
||||||
select,
|
|
||||||
null
|
|
||||||
)(FourOhFourPage);
|
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
import { connect } from 'react-redux';
|
|
||||||
import ReceivePage from './view';
|
import ReceivePage from './view';
|
||||||
|
|
||||||
const select = (state) => ({});
|
export default ReceivePage;
|
||||||
|
|
||||||
export default connect(select, {})(ReceivePage);
|
|
||||||
|
|
|
@ -1,8 +1,3 @@
|
||||||
import { connect } from 'react-redux';
|
|
||||||
import ReportContentPage from './view';
|
import ReportContentPage from './view';
|
||||||
|
|
||||||
const select = (state) => ({});
|
export default ReportContentPage;
|
||||||
|
|
||||||
const perform = (dispatch) => ({});
|
|
||||||
|
|
||||||
export default connect(select, perform)(ReportContentPage);
|
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
import { connect } from 'react-redux';
|
|
||||||
import SendPage from './view';
|
import SendPage from './view';
|
||||||
|
|
||||||
const select = (state) => ({});
|
export default SendPage;
|
||||||
|
|
||||||
export default connect(select, null)(SendPage);
|
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
import { connect } from 'react-redux';
|
|
||||||
import SwapPage from './view';
|
import SwapPage from './view';
|
||||||
|
|
||||||
const select = (state) => ({});
|
export default SwapPage;
|
||||||
|
|
||||||
export default connect(select, null)(SwapPage);
|
|
||||||
|
|
|
@ -1,10 +1,3 @@
|
||||||
import { connect } from 'react-redux';
|
|
||||||
import Welcome from './view';
|
import Welcome from './view';
|
||||||
|
|
||||||
const select = () => ({});
|
export default Welcome;
|
||||||
const perform = () => ({});
|
|
||||||
|
|
||||||
export default connect(
|
|
||||||
select,
|
|
||||||
perform
|
|
||||||
)(Welcome);
|
|
||||||
|
|
Loading…
Reference in a new issue