@colyseus/schema 3.0.37 → 3.0.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5007,6 +5007,8 @@ class StateView {
5007
5007
  }
5008
5008
  // DELETE / DELETE BY REF ID
5009
5009
  changes[changeTree.parentIndex] = OPERATION.DELETE;
5010
+ // Remove child schema from visible set
5011
+ this._recursiveDeleteVisibleChangeTree(changeTree);
5010
5012
  }
5011
5013
  else {
5012
5014
  // delete all "tagged" properties.
@@ -5071,6 +5073,12 @@ class StateView {
5071
5073
  }
5072
5074
  return isVisible;
5073
5075
  }
5076
+ _recursiveDeleteVisibleChangeTree(changeTree) {
5077
+ changeTree.forEachChild((childChangeTree) => {
5078
+ this.visible.delete(childChangeTree);
5079
+ this._recursiveDeleteVisibleChangeTree(childChangeTree);
5080
+ });
5081
+ }
5074
5082
  }
5075
5083
 
5076
5084
  registerType("map", { constructor: MapSchema });