({
columnIndex,
rowIndex,
style
}: CellComponentProps<{ gridRef: GridImperativeAPI | null }>)
| 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); |
nothing calls this directly
no outgoing calls
no test coverage detected