maisano / react-router-transition

painless transitions built for react-router, powered by react-motion
http://maisano.github.io/react-router-transition/
MIT License
2.59k stars 138 forks source link

add didLeave callback to RouteTransition component #87

Closed wgundamj44 closed 6 years ago

wgundamj44 commented 6 years ago

Hi @maisano , I tried to add didLeave callback as mentioned in #86. Could you give it a look pls?

maisano commented 6 years ago

@wgundamj44 this looks great to me—will it satisfy your use case?

wgundamj44 commented 6 years ago

I think so. In my case, some DOM queries are messed up by slide in animation, so I wanted to delay the DOM query until didLeave is fired.

maisano commented 6 years ago

going to merge. thanks so much for contributing!

i won't be at a computer for a day or so, but i'll let you know once i've published the update.