Skip to main content
Version: 3.0.0-beta

Function: useEntityFetch()

useEntityFetch<M, UserType>(__namedParameters): EntityFetchResult<M>

This hook is used to fetch an entity. It gives real time updates if the datasource supports it.

Type Parameters​

• M extends Record<string, any>

• UserType extends User

Parameters​

• __namedParameters: EntityFetchProps<M, UserType>

Returns​

EntityFetchResult<M>

Defined in​

packages/firecms_core/src/hooks/data/useEntityFetch.tsx:38

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