Table of Contents

Class ComponentNode

Namespace
Velvet
Assembly
Velvet.Docs.dll

Node that embeds a child component into a VNode tree. Holds the function-style component ([Component] static VNode) as a Body delegate and its function identity (MethodInfo) in Identity.

public sealed class ComponentNode : VNode
Inheritance
object
ComponentNode
Inherited Members

Properties

Body

Render body of the function component. The delegate of a static method annotated with [Component].

Identity

Identity used as this component's cache key across renders. Typically a System.Reflection.MethodInfo (Body.Method); when left null the component falls back to Body.Method.

IsErrorBoundary

Runtime hint for whether [Component(IsErrorBoundary = true)] is applied.

Props

Props value captured by the props-receiving V.Component<TProps> overload. Stored on the fiber and compared with the previous render's props (shallow per-property identity comparison) to decide whether to bail the re-render. Null for the refless / ref-forwarding overloads (props-less Render).