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';
|
||||
|
||||
const select = state => ({});
|
||||
|
||||
const perform = () => ({});
|
||||
|
||||
export default connect(select, perform)(IframeReact);
|
||||
export default IframeReact;
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
import { connect } from 'react-redux';
|
||||
import AbandonedChannelPreview from './view';
|
||||
|
||||
const select = (state, props) => ({});
|
||||
|
||||
export default connect(select)(AbandonedChannelPreview);
|
||||
export default AbandonedChannelPreview;
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
import { connect } from 'react-redux';
|
||||
import Expandable from './view';
|
||||
|
||||
export default connect(
|
||||
null,
|
||||
null
|
||||
)(Expandable);
|
||||
export default Expandable;
|
||||
|
|
|
@ -1,11 +1,3 @@
|
|||
import { connect } from 'react-redux';
|
||||
import i18n from './view';
|
||||
|
||||
const select = state => ({});
|
||||
|
||||
const perform = () => ({});
|
||||
|
||||
export default connect(
|
||||
select,
|
||||
perform
|
||||
)(i18n);
|
||||
export default i18n;
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
import { connect } from 'react-redux';
|
||||
import LivestreamList from './view';
|
||||
|
||||
const select = (state) => ({});
|
||||
|
||||
export default connect(select)(LivestreamList);
|
||||
export default LivestreamList;
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
import { connect } from 'react-redux';
|
||||
import LoadingBarOneOff from './view';
|
||||
|
||||
const select = (state, props) => ({});
|
||||
|
||||
export default connect(select)(LoadingBarOneOff);
|
||||
export default LoadingBarOneOff;
|
||||
|
|
|
@ -1,11 +1,3 @@
|
|||
import { connect } from 'react-redux';
|
||||
import Tag from './view';
|
||||
|
||||
const select = state => ({});
|
||||
|
||||
const perform = () => ({});
|
||||
|
||||
export default connect(
|
||||
select,
|
||||
perform
|
||||
)(Tag);
|
||||
export default Tag;
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
import { connect } from 'react-redux';
|
||||
import YoutubeBadge from './view';
|
||||
|
||||
const select = state => ({});
|
||||
|
||||
const perform = dispatch => ({});
|
||||
|
||||
export default connect(select, perform)(YoutubeBadge);
|
||||
export default YoutubeBadge;
|
||||
|
|
|
@ -1,9 +1,3 @@
|
|||
import { connect } from 'react-redux';
|
||||
import FourOhFourPage from './view';
|
||||
|
||||
const select = state => ({});
|
||||
|
||||
export default connect(
|
||||
select,
|
||||
null
|
||||
)(FourOhFourPage);
|
||||
export default FourOhFourPage;
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
import { connect } from 'react-redux';
|
||||
import ReceivePage from './view';
|
||||
|
||||
const select = (state) => ({});
|
||||
|
||||
export default connect(select, {})(ReceivePage);
|
||||
export default ReceivePage;
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
import { connect } from 'react-redux';
|
||||
import ReportContentPage from './view';
|
||||
|
||||
const select = (state) => ({});
|
||||
|
||||
const perform = (dispatch) => ({});
|
||||
|
||||
export default connect(select, perform)(ReportContentPage);
|
||||
export default ReportContentPage;
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
import { connect } from 'react-redux';
|
||||
import SendPage from './view';
|
||||
|
||||
const select = (state) => ({});
|
||||
|
||||
export default connect(select, null)(SendPage);
|
||||
export default SendPage;
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
import { connect } from 'react-redux';
|
||||
import SwapPage from './view';
|
||||
|
||||
const select = (state) => ({});
|
||||
|
||||
export default connect(select, null)(SwapPage);
|
||||
export default SwapPage;
|
||||
|
|
|
@ -1,10 +1,3 @@
|
|||
import { connect } from 'react-redux';
|
||||
import Welcome from './view';
|
||||
|
||||
const select = () => ({});
|
||||
const perform = () => ({});
|
||||
|
||||
export default connect(
|
||||
select,
|
||||
perform
|
||||
)(Welcome);
|
||||
export default Welcome;
|
||||
|
|
Loading…
Reference in a new issue