Table of Contents

Property Memoize

Namespace
Velvet
Assembly
Velvet.Docs.dll

Memoize

Opt-in props-bail: skip a parent-driven re-render when this component's props are shallow-equal to the previous render (each property compared by reference/value identity). Default is false.

This is a true opt-in gate: only a component with Memoize = true (or one created via V.Memo with a custom comparator) bails on shallow-equal props. A component without it re-renders whenever its parent re-renders; only an opted-in component skips a re-render on equal props.

public bool Memoize { get; init; }

Property Value

bool