Skip to main content
Version: 3.0.0-beta

Type Alias: SaveEntityWithCallbacksProps<M>

SaveEntityWithCallbacksProps<M>: SaveEntityProps<M> & object

Type declaration​

onPreSaveHookError()?​

optional onPreSaveHookError: (e) => void

Parameters​

• e: Error

Returns​

void

onSaveFailure()?​

optional onSaveFailure: (e) => void

Parameters​

• e: Error

Returns​

void

onSaveSuccess()?​

optional onSaveSuccess: (updatedEntity) => void

Parameters​

• updatedEntity: Entity<M>

Returns​

void

onSaveSuccessHookError()?​

optional onSaveSuccessHookError: (e) => void

Parameters​

• e: Error

Returns​

void

Type Parameters​

• M extends Record<string, any>

Defined in​

packages/firecms_core/src/hooks/data/save.ts:16

Sign up to our newsletter to get the latest news and updates. No spam!