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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -