In a react router, is it changing the url but not navigating?

I have a button, in onclick I make a transition, the url refreshes correctly, but it stays on the same page. I stepped through the passage. It found a route, does location.push, just never navigates anywhere?

var routes = (
    <Route handler={App} path="/">
        <DefaultRoute handler={LandingPage}/>
        <Route name="createEvent" path="createEvent" handler={CreateEvent}/>
        <NotFoundRoute handler={NotFound}/>
    </Route>
);

      

React 13.3, React-Router 13.3

Here's a list containing the relevant files: https://gist.github.com/ocorpening/d178e1907738e19287d0

+3


source to share





All Articles