memo cache
The fixed-size array of cached values the React Compiler gives each component, with one slot per memoized value.
In more detail
Compiled code checks whether a value inputs are unchanged, using Object.is; if so it reuses the slot, otherwise it recalculates and stores the new result. It is how the compiler does fine-grained memoization without dependency arrays you write.
Related terms
- React Compiler — A build-time tool from the React team that automatically adds memoization to components and hooks, so you rarely need useMemo, useCallback or React.memo.
- memoization — Remembering the result of a calculation for given inputs and reusing it when the same inputs come again, instead of recalculating.
- Object.is — The JavaScript function that tells whether two values are the same value, comparing objects by identity.
Taught in
- The React Compiler: Automated Memoization Under The Hood — React 19 & Modern Component Architecture