Skip to content

Commit 226a1d0

Browse files
committed
Add comment explaining interdependent aggregate stratification
1 parent 54734f7 commit 226a1d0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/runtime/builder.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,9 @@ function stratify(scans) {
668668
infoLevel = info.level
669669
}
670670
// if this is an aggregate, we always have to be in the level that is
671-
// one greater than all our dependencies
671+
// one greater than all our dependencies.
672+
// In the event that one of our dependencies is filtered by an aggregate,
673+
// we stratify ourselves behind it.
672674
if(isAgg) {
673675
for(let provider of info.providers) {
674676
if(isAggregate(provider) && provider !== scan) {

0 commit comments

Comments
 (0)