reactjs - React transition group - reload same component but swap contents after exit -


so, i've got csstransitiongroup around router switch, has route containing component currentproject inside (among couple others).

the transitions working fine, switch. however, if route changed 1 matching currentproject matching currentproject (i.e, different project), enter/exit transition , new project loaded around same time, can see title , content swap on during transition.

is there way react-transition-group 'exit' transition, wait content load, then 'enter' transition?

are putting location={history.location} param switch tag? necessary holding content in leaving component...


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

Python Tornado package error when running server -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -