@jsenv/navi 0.29.411 → 0.29.412

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.
@@ -40438,6 +40438,13 @@ const useUIGroupStateController = (
40438
40438
  placeOneChild(childUIStateController, childNewState, e);
40439
40439
  },
40440
40440
  setUIState: (newUIState, e) => {
40441
+ // `undefined` is how a parent empties a child (see the object
40442
+ // group's distributeChildUIState): what a leaf holds when it holds
40443
+ // nothing, and for a group of the default shape, the empty of its
40444
+ // type — not a value of the wrong shape to refuse.
40445
+ if (newUIState === undefined && stateShapeIsTheDefaultOne) {
40446
+ newUIState = fallbackState;
40447
+ }
40441
40448
  if (
40442
40449
  stateType === "object" &&
40443
40450
  stateShapeIsTheDefaultOne &&