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.
Type Parameters
Section titled “Type Parameters”TFieldMeta
Section titled “TFieldMeta”TFieldMeta extends object = { }
TCollectionMeta
Section titled “TCollectionMeta”TCollectionMeta extends object = { }
TCollectionSlug
Section titled “TCollectionSlug”TCollectionSlug extends CollectionSlug = CollectionSlug
TDocument
Section titled “TDocument”TDocument extends VexDocument = VexDocument
Properties
Section titled “Properties”collection
Section titled “collection”collection:
CollectionConfig<TFieldMeta,TCollectionMeta,TCollectionSlug>
Defined in: packages/core/src/framework.ts:100
The resolved collection configuration whose fields will be rendered.
documentId
Section titled “documentId”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.
initialData?
Section titled “initialData?”
optionalinitialData?: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”.