MCPcopy Create free account
hub / github.com/adobe/react-spectrum / CollectionBranch

Function CollectionBranch

packages/react-aria-components/src/Virtualizer.tsx:144–148  ·  view source on GitHub ↗
({parent, renderDropIndicator}: CollectionBranchProps)

Source from the content-addressed store, hash-verified

142}
143
144function CollectionBranch({parent, renderDropIndicator}: CollectionBranchProps) {
145 let virtualizer = useContext(VirtualizerContext);
146 let parentView = virtualizer!.virtualizer.getVisibleView(parent.key)!;
147 return renderChildren(parentView, Array.from(parentView.children), renderDropIndicator);
148}
149
150function renderChildren(
151 parent: View | null,

Callers

nothing calls this directly

Calls 2

getVisibleViewMethod · 0.80
renderChildrenFunction · 0.70

Tested by

no test coverage detected