Skip to content

Commit 694218b

Browse files
committed
fix: action cleanup when run successfully
1 parent 87502e5 commit 694218b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/timeline/src/action.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,6 @@ export async function* action<T>(action: Action<T>): NonReuseableTimeline<T> {
6666
yield timelineYield
6767
if (!internalAbortController.signal.aborted) {
6868
internalAbortController.abort()
69+
cleanup?.()
6970
}
7071
}

0 commit comments

Comments
 (0)