Property Compiler
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
Compiler
Whether the build-time compiler transform — inner auto-memoization — is woven into this
component. Default is true: the transform caches the component's VNode construction keyed on the
values flowing out of its hook calls (and its props), rebuilding only when one of those inputs changes
by reference/value identity. Every component is auto-memoized with no opt-in, so this is on by
default for all components.
Set to false to opt this component out of the transform, so its body then runs in full on
every render. This is an escape hatch for
the rare component whose render must not be cached; it is orthogonal to Memoize, which
governs the props-bail axis at the reconcile boundary.
public bool Compiler { get; init; }
Property Value
- bool