MCPcopy Create free account
hub / github.com/bvaughn/react-virtualized / createGrid

Function createGrid

lib/utils/createInnerGridRef.test.ts:5–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import { createInnerGridRef } from "./createInnerGridRef";
4
5function createGrid() {
6 return {
7 invalidateCellSizeAfterRender: vi.fn(),
8 recomputeGridSize: vi.fn()
9 } as unknown as GridImperativeAPI & {
10 invalidateCellSizeAfterRender: ReturnType<typeof vi.fn>;
11 recomputeGridSize: ReturnType<typeof vi.fn>;
12 };
13}
14
15describe("createInnerGridRef", () => {
16 it("should forward calls once the Grid's ref has been attached", () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected