Skip to main content

LazyItem TypeAlias

An "eager" or "lazy" Item in a FlexList. Lazy items are wrapped in a function to allow referring to themselves before they are declared. This makes recursive and co-recursive items possible.

Signature

export type LazyItem<Item = unknown> = Item | (() => Item);

Type Parameters

Parameter Default Description
Item unknown