Skip to content

VexDocumentProvider

VexDocumentProvider(props): Element

Defined in: packages/react/src/documents/VexDocumentContext.tsx:52

Mounts VexDocumentContext for the subtree it wraps. CollectionEditView and GlobalEditView (step 4) are the only callers — each recomputes VexDocumentState from its own loaded document, form and permission state and wraps its seven SlotOutlets with this provider.

The resolved document state to provide, and the subtree that consumes it.

ReactNode

VexDocumentState

Element

The context provider wrapping props.children.