Skip to content

Commit cc526a8

Browse files
todoroneaksonov
authored andcommitted
Fixes onExit PR (#2760)
1 parent f532a82 commit cc526a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dist/navigationStore.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,13 +300,13 @@ this.ref.onEnter(navigation&&navigation.state);
300300
}},{key:'componentWillUnmount',value:function componentWillUnmount()
301301
{
302302
var navigation=this.props.navigation;
303-
this.ref=null;
304303
if(this.ref&&navigation&&navigation.state&&navigation.state.routeName){
305304
store.deleteRef(originalRouteName(navigation.state.routeName));
306305
}
307306
if(this.ref&&this.ref.onExit){
308307
this.ref.onExit(navigation&&navigation.state);
309308
}
309+
this.ref=null;
310310
}},{key:'onRef',value:function onRef(
311311
ref){
312312
this.ref=ref;
@@ -685,4 +685,4 @@ params:params})]}));
685685

686686

687687

688-
new NavigationStore();
688+
new NavigationStore();

0 commit comments

Comments
 (0)