Skip to content

Commit

Permalink
chore(templates): include injectors after clean script (react-boilerp…
Browse files Browse the repository at this point in the history
  • Loading branch information
justingreenberg authored and mxstbr committed Aug 5, 2016
1 parent 340cd5f commit 396f2d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internals/templates/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// They are all wrapped in the App component, which should contain the navbar etc
// See http://blog.mxstbr.com/2016/01/react-apps-with-pages for more information
// about the code splitting business
// import { getAsyncInjectors } from 'utils/asyncInjectors';
import { getAsyncInjectors } from 'utils/asyncInjectors';

const errorLoading = (err) => {
console.error('Dynamic page loading failed', err); // eslint-disable-line no-console
Expand All @@ -12,9 +12,9 @@ const loadModule = (cb) => (componentModule) => {
cb(null, componentModule.default);
};

export default function createRoutes() {
export default function createRoutes(store) {
// Create reusable async injectors using getAsyncInjectors factory
// const { injectReducer, injectSagas } = getAsyncInjectors(store);
const { injectReducer, injectSagas } = getAsyncInjectors(store); // eslint-disable-line no-unused-vars

return [
{
Expand Down

0 comments on commit 396f2d1

Please sign in to comment.