# GridRendererDiscovery

Fields, allowed values, and APIs that use GridRendererDiscovery.

Canonical: https://grid.syidax.com/docs/types/GridRendererDiscovery/

<a id="definition"></a>

## Type definition

A question mark (?) marks an optional field; readonly marks a value you should not change directly. A union (|) accepts one of the listed forms. Functions are callbacks that Grid invokes at the relevant point.

```typescript
export type GridRendererDiscovery<
  TRow = Record<string, unknown>,
  TValue = unknown,
  TContext = unknown,
> =
  | {
      readonly status: 'mounted';
      readonly key: string;
      readonly identity: GridRendererCellIdentity;
      readonly generation: number;
      readonly host: GridRendererHost;
      readonly instance: GridRendererInstance<TRow, TValue, TContext>;
      readonly gui: GridRendererGui;
      readonly params: GridRendererParams<TRow, TValue, TContext>;
    }
  | {
      readonly status: 'logical-offscreen';
      readonly key: string;
      readonly identity: GridRendererCellIdentity;
      readonly lastGeneration?: number;
    }
  | {
      readonly status: 'unavailable';
      readonly key: string;
    }
  | {
      readonly status: 'stale';
      readonly key: string;
      readonly requestedGeneration: number;
      readonly currentGeneration?: number;
    };
```

<a id="used-by"></a>

## APIs using this type

- [getCellRendererInstance](https://grid.syidax.com/docs/methods/getCellRendererInstance.md) — Queries mounted cell renderer instances. Offscreen cells may be unmounted because of virtualization.

<a id="parents"></a>

## Contracts containing this type

- [SyGridImperativeMethods](https://grid.syidax.com/docs/types/SyGridImperativeMethods.md)

<a id="related"></a>

## Related types

- [GridRendererCellIdentity](https://grid.syidax.com/docs/types/GridRendererCellIdentity.md)
- [GridRendererHost](https://grid.syidax.com/docs/types/GridRendererHost.md)
- [GridRendererInstance](https://grid.syidax.com/docs/types/GridRendererInstance.md)
- [GridRendererGui](https://grid.syidax.com/docs/types/GridRendererGui.md)
- [GridRendererParams](https://grid.syidax.com/docs/types/GridRendererParams.md)
