Interface: EntityOnSaveProps<M>
Parameters passed to hooks when an entity is saved
Type parameters​
Name | Type |
---|---|
M | extends Object |
Properties​
context​
• context: FireCMSContext
<any
>
Context of the app status
Defined in​
entityId​
• Optional
entityId: string
Id of the entity or undefined if new
Defined in​
path​
• path: string
Full path where this entity is being saved
Defined in​
previousValues​
• Optional
previousValues: Partial
<M
>
Previous values
Defined in​
schema​
• schema: ResolvedEntitySchema
<M
>
Resolved schema of the entity
Defined in​
status​
• status: EntityStatus
New or existing entity
Defined in​
values​
• values: Partial
<M
>
Values being saved