Interface: EntityOnSaveProps<M, USER>
Parameters passed to hooks when an entity is saved
Type Parameters​
• M extends Record
<string
, any
> = any
Properties​
collection​
collection:
ResolvedEntityCollection
<M
>
Resolved collection of the entity
Defined in​
packages/firecms_core/src/types/entity_callbacks.ts:128
context​
context:
FireCMSContext
<USER
>
Context of the app status
Defined in​
packages/firecms_core/src/types/entity_callbacks.ts:164
entityId​
entityId:
string
ID of the entity
Defined in​
packages/firecms_core/src/types/entity_callbacks.ts:144
path​
path:
string
Full path of the CMS where this entity is being saved. Might contain unresolved aliases.
Defined in​
packages/firecms_core/src/types/entity_callbacks.ts:134
previousValues?​
optional
previousValues:Partial
<M
>
Previous values
Defined in​
packages/firecms_core/src/types/entity_callbacks.ts:154
resolvedPath​
resolvedPath:
string
Full path where this entity is being saved, with alias resolved
Defined in​
packages/firecms_core/src/types/entity_callbacks.ts:139
status​
status:
EntityStatus
New or existing entity
Defined in​
packages/firecms_core/src/types/entity_callbacks.ts:159
values​
values:
Partial
<M
>
Values being saved