Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onEnter can trigger but onExit can not #2807

Closed
chinavane opened this issue Jan 18, 2018 · 1 comment
Closed

onEnter can trigger but onExit can not #2807

chinavane opened this issue Jan 18, 2018 · 1 comment

Comments

@chinavane
Copy link

chinavane commented Jan 18, 2018

class Contact extends Component {
static onEnter = () => {
console.log('--------------->onEnter')
};
static onExit = () =>{
console.log('---------------->onExit')
}

I can console onEnter,but onExit can't trigger.

@Blapi
Copy link
Collaborator

Blapi commented Jan 18, 2018

Giving the solution is a good practice before closing an issue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants