Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit eb72ff4

Browse files
JiaLiPassionmhevery
authored andcommittedJan 8, 2019
fix(core): fix interval will still run after cancelled error (#1156)
1 parent afa1363 commit eb72ff4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/zone.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ const Zone: ZoneType = (function(global: any) {
796796
// will run in notScheduled(canceled) state, we should not try to
797797
// run such kind of task but just return
798798

799-
if (task.state === notScheduled && task.type === eventTask) {
799+
if (task.state === notScheduled && (task.type === eventTask || task.type === macroTask)) {
800800
return;
801801
}
802802

0 commit comments

Comments
 (0)