reactjs - how to update a route in React Router without re-mounting the component in a single page app? -


i'm looking way "cosmetically" update route in address bar of react/redux/react-router/react-router-redux application, without causing component remount when route changes.

i'm using react css transition groups animate entering route. when user goes from

/home/

to

/home/profile/bob,

an animation fires.

however, once on /home/profile/bob, user can swipe left/right other profiles -- /home/profile/joe etc.

i want url in address bar update when happens, causes profile component re-mount, re-triggers css transition group, causing animation trigger -- want animation trigger when going non-profile route profile route, not when switching between profile routes.

i hope makes sense. i'm looking way "cosmetically" update app url without forcing re-mounting of component manages route.

if using react router, mount/unmount when change url. that's normal behaviour. it's same thing transitioning between pages, can declare , in/out transition without knowing url path did come :(


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo