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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -