diff --git a/src/client/spark_core/Collections/Operable/Hierarchical/OperableHierarchicalCollection.cs b/src/client/spark_core/Collections/Operable/Hierarchical/OperableHierarchicalCollection.cs index f421512cd..d0039bfdd 100644 --- a/src/client/spark_core/Collections/Operable/Hierarchical/OperableHierarchicalCollection.cs +++ b/src/client/spark_core/Collections/Operable/Hierarchical/OperableHierarchicalCollection.cs @@ -155,9 +155,10 @@ namespace bts.collections { public void expand_all() { _tree.expand_all(); if (_refresh.is_execution_deferred) { + // Do NOT attempt any optimizations (this collection was already out of sync with the tree). _sync(); } else if (Count > 0) { - /// This simple optimization (rather than calling ), leverages the knowledge that the relative order of the rows has not changed, and the only mutations will be inserts. + /// Rather than calling , this optimization leverages the fact that the relative order of the rows has not changed, and the only mutations will be inserts. using (var en = _tree.rows.GetEnumerator()) { int pos = 0; while (en.MoveNext()) {