Skip to content

CollectionEditViewProps

Defined in: packages/core/src/framework.ts:93

Props passed to the CollectionEditView component.

TCollectionSlug is inferred from the collection prop. After vex generate runs, passing a collection of the wrong slug is a compile-time error.

ViewComponentMap

TFieldMeta extends object = { }

TCollectionMeta extends object = { }

TCollectionSlug extends CollectionSlug = CollectionSlug

TDocument extends VexDocument = VexDocument

collection: CollectionConfig<TFieldMeta, TCollectionMeta, TCollectionSlug>

Defined in: packages/core/src/framework.ts:100

The resolved collection configuration whose fields will be rendered.


documentId: string

Defined in: packages/core/src/framework.ts:105

The Convex document ID of the document being edited. Omit for new document creation — the form will be empty.


optional initialData?: TDocument | null

Defined in: packages/core/src/framework.ts:110

Pre-fetched document from the server for SSR hydration. null explicitly means “no document found”. undefined means “not loaded yet”.