Skip to main content
Version: 3.0.0-beta

Interface: EntityOnFetchProps<M, UserType>

Parameters passed to hooks when an entity is fetched

Type Parameters​

• M extends Record<string, any> = any

• UserType extends User = User

Properties​

collection​

collection: EntityCollection<M, UserType>

Collection of the entity

Defined in​

packages/firecms_core/src/types/entity_callbacks.ts:81


context​

context: FireCMSContext<UserType>

Context of the app status

Defined in​

packages/firecms_core/src/types/entity_callbacks.ts:97


entity​

entity: Entity<M>

Fetched entity

Defined in​

packages/firecms_core/src/types/entity_callbacks.ts:92


path​

path: string

Full path of the CMS where this collection is being fetched. Might contain unresolved aliases.

Defined in​

packages/firecms_core/src/types/entity_callbacks.ts:87

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