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

Function updateContext

packages/react-stately/src/table/Column.ts:109–116  ·  view source on GitHub ↗
(context: CollectionBuilderContext<T>)

Source from the content-addressed store, hash-verified

107 };
108
109 let updateContext = (context: CollectionBuilderContext<T>) => {
110 // register leaf columns on the context so that <Row> can access them
111 for (let node of fullNodes) {
112 if (!node.hasChildNodes) {
113 context.columns.push(node);
114 }
115 }
116 };
117
118 updateContext(context);
119};

Callers 2

shouldInvalidateFunction · 0.85
Column.tsFile · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected