Skip to Content
⚠️Active Development Notice: TimeTiles is under active development. Information may be placeholder content or not up-to-date.

web


web / lib/constants/empty

lib/constants/empty

Stable empty array reference to prevent unnecessary React re-renders.

Use instead of inline [] in default values, fallback expressions, and props where referential equality matters (e.g., data ?? EMPTY_ARRAY). Typed as never[] so it’s assignable to any T[]. The array is frozen at runtime to prevent accidental mutation.

Variables

EMPTY_ARRAY

const EMPTY_ARRAY: never[]

Last updated on