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
— Dependencies states the branch each type takes, since the weaver keys on
the same dependency comparison. Auto-memoization needs no opt-in: set this to false to opt
out. The weaver also declines a component silently, with no diagnostic, where it finds a hook it
cannot memoize safely, and VelvetCompilerILPostProcessor.WillProcess decides which
assemblies it reaches at all.
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