Skip to content
This repository has been archived by the owner on Sep 11, 2018. It is now read-only.

Fractal Project Structure #684

Merged
merged 20 commits into from
Apr 21, 2016
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
"react": "^15.0.0",
"react-dom": "^15.0.0",
"react-redux": "^4.0.0",
"react-router": "^2.0.0",
"react-router": "^2.2.0",
"react-router-redux": "^4.0.0",
"redux": "^3.0.0",
"redux-thunk": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/routes/Counter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { injectReducer } from '../../store/reducers'

export default (store) => ({
path: 'counter',
getComponents (location, next) {
getComponent (nextState, next) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

per latest release:
https://github.com/reactjs/react-router/blob/master/upgrade-guides/v2.2.0.md

looks like the roadmap has a strong emphasis on improving async routing, so this is def a step in the right direction

require.ensure([
'./containers/CounterContainer',
'./modules/counter'
Expand Down