@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.
@@ -5009,6 +5009,8 @@ class StateView {
5009
5009
  }
5010
5010
  // DELETE / DELETE BY REF ID
5011
5011
  changes[changeTree.parentIndex] = exports.OPERATION.DELETE;
5012
+ // Remove child schema from visible set
5013
+ this._recursiveDeleteVisibleChangeTree(changeTree);
5012
5014
  }
5013
5015
  else {
5014
5016
  // delete all "tagged" properties.
@@ -5073,6 +5075,12 @@ class StateView {
5073
5075
  }
5074
5076
  return isVisible;
5075
5077
  }
5078
+ _recursiveDeleteVisibleChangeTree(changeTree) {
5079
+ changeTree.forEachChild((childChangeTree) => {
5080
+ this.visible.delete(childChangeTree);
5081
+ this._recursiveDeleteVisibleChangeTree(childChangeTree);
5082
+ });
5083
+ }
5076
5084
  }
5077
5085
 
5078
5086
  registerType("map", { constructor: MapSchema });