-
Notifications
You must be signed in to change notification settings - Fork 3k
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
1.0 ng1: Hooks can still be called after de-register invocation #2928
Comments
👍 , seeing the same thing. |
Are you deregistering the hook while a transition is in process? The hook pipeline is computed when the transition starts. What is your use case(s)? |
So the basic scenario can be boiled down to:
Where What ends up happening is:
What I considered surprising about this is that invoking the de-registration function is not upheld 100 percent of the time. It seems like this can lead to subtle bugs as I suspect others with have the same assumption. |
I see... that's helpful, thanks for the use case details. I agree that's surprising behavior as you described. Here's the details of why it's happening:
I'm going to have to give some thought to this. |
Fixed by #2939 |
We are seeing a case where our hook callback is invoked after de-registering it.
It seems that the callback should never be invoked after a de-register is called.
The text was updated successfully, but these errors were encountered: