0.9.1-alpha.15
Alpha@xaui/native@0.9.1-alpha.15
Patch Changes
-
7376ce5:
asChildreachedSlotas an array, so every pressable threwPressableFeedbackrendered{overlays}{content}— two expression children, which React hands to the root as an array. UnderasChildthat root is aSlot, which merges into a single element and threw instead, whether or not an overlay was composed: with none,partitionOverlaysreturnsoverlays: nulland[null, content]is an array all the same.<Button asChild>was unusable, and so was every other pressable.The root's children are now computed once, as a single node, by
feedbackChildren.asChildskips the partition entirely: the caller's element is the pressable, so an overlay written inside it belongs to it and hoisting would make it a sibling of the very element it was composed into.