React-redux connect method unable to locate store in props. The solution was found in redux troubleshooting docs. I needed to have my react-router return a function that created the actual router:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | import { _ } from 'factories' import { Router, IndexRoute, Route } from 'react-router' import history from 'history/lib/createBrowserHistory' import Home from '../components/home/home' let route = _(Route), index = _(IndexRoute); const router = () => _(Router)({history: history()}, route({path: 'home', component: Home}) ); export default router; |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.