Skip to main content
Version: 3.0.0-beta

Function: useEntityFetch()

useEntityFetch<M, USER>(__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>

• USER extends User

Parameters​

• __namedParameters: EntityFetchProps<M, USER>

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!