I gitcloned and modified the Example app to check the state if the user is logged in or not.
If !this.state.loggedIn then redirect to the login route. However this generates a "Cannot read property 'getCurrentRoutes' of undefined" error


But if I remove the !this.state.loggedIn and simply check for this.state.loggedIn === true then the operation works and the Action is kicked off
Weird, can someone help?
Code here: https://github.com/jw84/routerDemo