Skip to content

Commit

Permalink
Address feedback (analyticsMiddleware, TODO comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcsf committed Dec 3, 2015
1 parent f756fbd commit 48284ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions shared/lib/create-redux-store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,17 @@
* External dependencies
*/
import thunkMiddleware from 'redux-thunk';
import createLogger from 'redux-logger';
import { createStore, applyMiddleware } from 'redux';

/**
* Internal dependencies
*/
import reducers from './reducers';

const loggerMiddleware = createLogger();
import { analyticsMiddleware } from 'lib/themes/middlewares.js';

export default () => {
return applyMiddleware(
thunkMiddleware,
loggerMiddleware
analyticsMiddleware
)( createStore )( reducers );
};
1 change: 1 addition & 0 deletions shared/my-sites/themes/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ var controller = {
analytics.pageView.record( basePath, analyticsPageTitle );

React.render(
// TODO: Remove function when using React 0.14
React.createElement( ReduxProvider, { store: context.reduxStore }, () => {
return React.createElement( ThemesComponent, {
key: site_id,
Expand Down

0 comments on commit 48284ad

Please sign in to comment.