Rezi
    Preparing search index...

    Function createWidgetContext

    • Create a WidgetContext for rendering a composite widget. This is called by the runtime during the commit phase.

      Type Parameters

      • State

      Parameters

      • widgetKey: string

        Widget definition key for ID scoping

      • instanceIndex: number

        Instance index for ID scoping

      • hookContext: Pick<WidgetContext<State>, "useState" | "useRef" | "useEffect">

        Hook implementations from instance registry

      • appState: State

        Current app state for useAppState

      • onInvalidate: () => void

        Callback when widget needs re-render

      Returns WidgetContext<State>

      Complete WidgetContext for the render pass