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

Function treeRecords

perf/drivers.mjs:324–329  ·  view source on GitHub ↗
(size, expanded)

Source from the content-addressed store, hash-verified

322];
323
324const treeRecords = (size, expanded) => {
325 let roots = Array.from({length: 20}, (_, i) => `project-${i}`);
326 return expanded
327 ? [roots[0], ...Array.from({length: size / 20}, (_, i) => `file-0-${i}`), ...roots.slice(1)]
328 : roots;
329};
330const treeRows = (size, expanded, focused) => [
331 ordered('.project-tree [data-record]', treeRecords(size, expanded)),
332 condition('.project-tree [data-record="project-0"]', {

Callers 1

treeRowsFunction · 0.85

Calls 1

sliceMethod · 0.80

Tested by

no test coverage detected