-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from manuelbieh/updates/nov-dec
Updates/nov dec
- Loading branch information
Showing
12 changed files
with
1,536 additions
and
1,050 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import createMemoryHistory from 'history/createMemoryHistory'; | ||
import createBrowserHistory from 'history/createBrowserHistory'; | ||
|
||
// import { createBrowserHistory, createMemoryHistory } from 'history'; | ||
|
||
export const createUniversalHistory = () => { | ||
if (__BROWSER__) { | ||
const history = window.browserHistory || createBrowserHistory(); | ||
if (process.env.NODE_ENV === 'development' && !window.browserHistory) { | ||
window.browserHistory = history; | ||
} | ||
return history; | ||
} | ||
return createMemoryHistory(); | ||
}; | ||
|
||
export default createUniversalHistory; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import { combineReducers } from 'redux'; | ||
import { routerReducer as router } from 'react-router-redux'; | ||
|
||
import { connectRouter } from 'connected-react-router'; | ||
import createHistory from './history'; | ||
import app from './app/reducer'; | ||
|
||
const history = createHistory(); | ||
|
||
const rootReducer = combineReducers({ | ||
app, | ||
router, | ||
router: connectRouter(history), | ||
}); | ||
|
||
export default rootReducer; |
Oops, something went wrong.