MCPcopy Create free account
hub / github.com/bvaughn/react-window / CellComponentWithCellProps

Function CellComponentWithCellProps

lib/components/grid/Grid.test.tsx:775–785  ·  view source on GitHub ↗
({
        columnIndex,
        rowIndex,
        style
      }: CellComponentProps<{ gridRef: GridImperativeAPI | null }>)

Source from the content-addressed store, hash-verified

773 describe("edge cases", () => {
774 test("should not cause a cycle if Grid callback ref is passed in cellProps", () => {
775 function CellComponentWithCellProps({
776 columnIndex,
777 rowIndex,
778 style
779 }: CellComponentProps<{ gridRef: GridImperativeAPI | null }>) {
780 return (
781 <div style={style}>
782 {rowIndex},{columnIndex}
783 </div>
784 );
785 }
786
787 function Test() {
788 const [gridRef, setGridRef] = useGridCallbackRef(null);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected