Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added popToTop() in the onReplace method #134

Closed
wants to merge 1 commit into from

Commits on Jan 19, 2016

  1. Added popToTop() in the onReplace method

    Added `this.refs.nav.popToTop()` to the onReplace method of `ExRouter.js` so that the components **unmount** when replacing the current route with another route.  I was having an issue where one of my child routes that requires an event listener wasn't having it's `componentWillUnmount` called when replacing the route.  This change is working for my use case.
    
    I'm new to this package so there may be a better way to solve this.
    rgoldiez committed Jan 19, 2016
    Configuration menu
    Copy the full SHA
    074a378 View commit details
    Browse the repository at this point in the history