-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Transition hooks #1175
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
Transition hooks #1175
Conversation
onLeaveCancelled(el) { | ||
finishLeave(el) | ||
callHook(onLeaveCancelled, [el]) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fix the bug wihch never called onEnterCancelled
and onLeaveCancelled
hooks
onEnter, | ||
onBeforeEnter, | ||
onEnterCancelled | ||
] = originEnterHook | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is fix bug which never called the related appear
hooks
export type TransitionOtherHook<HostElement = RendererElement> = ( | ||
el: HostElement | ||
) => void | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's helpful for re-use type.But i'm not sure your opinion
Does #1151 contain tests for this? |
#1151 has been merged - can you rebase on top of |
Bug Fix
appear
props, and add appear hooks props intoBaseTransitionProps
.2.Should call
onLeaveCancelled
andonEnterCancelled
hook.Feature
BaseTransition
. because it will throw error with wrapped function inTransition
.It is should happend in user provider hooks.