Table of Contents

Class ComponentFiber

Namespace
Velvet
Assembly
Velvet.Docs.dll

Identity that persists across re-renders for one component instance. Forms a parent/child linked-list tree via Parent / Child / Sibling pointers, and holds hook slots / context dependencies / refs / error boundary / suspense boundary.

public sealed class ComponentFiber
Inheritance
object
ComponentFiber

Remarks

Hook slots are aggregated on the Fiber. Render / commit / lane scheduling is driven by static method groups on Velvet.FiberRenderer that take a fiber as argument (module-level functions operating on a fiber rather than instance methods).

Fields

RenderCount

Cumulative count of successful renders. Used for debugging / profiling.

RequestRenderForContextHandler

Dispatch slot for re-render scheduling triggered by context value changes. Used by NotifyContextChanged(ComponentFiber, object, int) to notify consumers; the production handler queues the work on the Lane queue (FiberUpdatePriority.Normal) so context propagation commits at the next schedule cycle alongside other hook updates.

Properties

Child
IsDirty

Whether re-render is needed at the next FlushState (an update was requested via Hook setter / dispatch / store subscription). Marks the fiber dirty so it is re-rendered on the next flush.

IsDisposed

Whether the component is already disposed. Used as a no-op guard on paths such as calling a setter from within Render.

IsErrorBoundary
IsMounted

Whether the component is currently mounted (between Mount() completion and Unmount() start). Used to guard effects / state updates against an unmounted fiber.

IsRendering

Flag indicating that Render() is currently executing. Referenced by HookGuard to validate the hook invocation context.

IsSuspenseBoundary
Parent
Ref
Sibling

Methods

AppendChild(ComponentFiber)
Detach()
RemoveChild(ComponentFiber)