diff --git a/packages/behavior/item/actions.js b/packages/behavior/item/actions.js index b9061cf..8696945 100644 --- a/packages/behavior/item/actions.js +++ b/packages/behavior/item/actions.js @@ -73,10 +73,11 @@ export class Actions extends decorate(Traversals) { let immediate = true; const results = this.traversals.map((traversal) => { const result = traversal.traverse(context); + // Side-effect for performance. if (result instanceof Promise) { immediate = false; } - results.push(result); + return result; }); return immediate ? results : TickingPromise.all(results); }