Table of Contents

Field RequestRenderForContextHandler

Namespace
Velvet
Assembly
Velvet.Docs.dll

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.

public Action<ComponentFiber>? RequestRenderForContextHandler

Returns

Action<ComponentFiber>
Dispatch slot for re-render scheduling triggered by context value changes. Used by 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.

Remarks

A cached static delegate is assigned via CreateRoot(Func<VNode>, bool), eliminating per-fiber delegate allocation (zero-allocation design). Tests assign a mock delegate directly to verify dispatch behavior.