Skip to content

Commit e6c731f

Browse files
vikermanIgorMinar
authored andcommitted
fix(router): don't use spread operator to workaround an issue in closure compiler (#22884)
Closure compiler could not handle the spread operator in this one place. Working around it by removing the use of spread operator. PR Close #22884
1 parent 7d095b9 commit e6c731f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/router/src/utils/collection.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ export function waitForMap<A, B>(
8484
}
8585
});
8686

87-
return of (...waitHead, ...waitTail).pipe(concatAll(), lastValue(), map(() => res));
87+
// Closure compiler has problem with using spread operator here. So just using Array.concat.
88+
return of .apply(null, waitHead.concat(waitTail)).pipe(concatAll(), lastValue(), map(() => res));
8889
}
8990

9091
/**

0 commit comments

Comments
 (0)