Skip to content

Commit

Permalink
Fixes onExit PR (#2760)
Browse files Browse the repository at this point in the history
  • Loading branch information
todorone authored and aksonov committed Jan 4, 2018
1 parent f532a82 commit cc526a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/navigationStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,13 +300,13 @@ this.ref.onEnter(navigation&&navigation.state);
}},{key:'componentWillUnmount',value:function componentWillUnmount()
{
var navigation=this.props.navigation;
this.ref=null;
if(this.ref&&navigation&&navigation.state&&navigation.state.routeName){
store.deleteRef(originalRouteName(navigation.state.routeName));
}
if(this.ref&&this.ref.onExit){
this.ref.onExit(navigation&&navigation.state);
}
this.ref=null;
}},{key:'onRef',value:function onRef(
ref){
this.ref=ref;
Expand Down Expand Up @@ -685,4 +685,4 @@ params:params})]}));



new NavigationStore();
new NavigationStore();

0 comments on commit cc526a8

Please sign in to comment.