mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-05-31 00:02:08 +08:00
ASDisplayNode should bail early if a scheduled transition was invalidated before its block executes
- Idea borrowed from _enqueueAsyncSizingWithSentinel
This commit is contained in:
@@ -681,6 +681,10 @@ static ASDisplayNodeMethodOverrides GetASDisplayNodeMethodOverrides(Class c)
|
||||
});
|
||||
|
||||
void (^transitionBlock)() = ^{
|
||||
if ([self _shouldAbortTransitionWithID:transitionID]) {
|
||||
return;
|
||||
}
|
||||
|
||||
ASLayout *newLayout;
|
||||
{
|
||||
ASLayoutableSetCurrentContext(ASLayoutableContextMake(transitionID, NO));
|
||||
|
||||
Reference in New Issue
Block a user