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

Added SUCCESS_TRANSITION #7

Merged

Conversation

lawsumisu
Copy link
Contributor

No description provided.

@@ -26,7 +32,7 @@ function dispatch(
event: string,
store: Store<any>,
trans: Transition
): TransitionHookFn {
): () => void {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method returns a function that takes in no params, so it's not really a TransitionHookFn. It could be the case the the transition that gets passed into this return function is the actual trans value to use rather than the one passed into the higher-order function, but I didn't feel like investigating that.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, I agree () => void is better type here

@ericbuth
Copy link

@elboman Does this pull request look reasonable to merge?

@elboman
Copy link
Member

elboman commented Apr 19, 2019

Hey, thanks for the PR. Looks good, merging it!

@elboman elboman merged commit f1a0f98 into ui-router:master Apr 19, 2019
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

Successfully merging this pull request may close these issues.

None yet

3 participants