File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " @aacgn/atomic" ,
3- "version" : " 2.0.4 -alpha" ,
3+ "version" : " 2.0.5 -alpha" ,
44 "description" : " A JavaScript library for building horizontal micro frontends interfaces" ,
55 "main" : " ./src/index.js" ,
66 "bin" : " ./src/index.js" ,
Original file line number Diff line number Diff line change @@ -52,14 +52,16 @@ export class AtomicRouter {
5252 }
5353
5454 enableTransitionPage ( ) {
55- if ( ! this . _isTransitionPageEnable )
55+ if ( this . _transitionPage && ! this . _isTransitionPageEnable ) {
5656 mountTransitionPage ( this . _previousPageRendered , this . _transitionPage ) ;
57- this . _isTransitionPageEnable = true ;
57+ this . _isTransitionPageEnable = true ;
58+ }
5859 }
5960
6061 disableTransitionPage ( ) {
61- unmountTransitionPage ( this . _previousPageRendered , this . _transitionPage ) ;
62- this . _isTransitionPageEnable = false ;
62+ if ( this . _transitionPage )
63+ unmountTransitionPage ( this . _previousPageRendered , this . _transitionPage ) ;
64+ this . _isTransitionPageEnable = false ;
6365 }
6466
6567 _useWindowHistoryChangeInterceptor ( ) {
You can’t perform that action at this time.
0 commit comments