Skip to main content

useFetchEntity

Overview

The useFetchEntity hook is used to retrieve details of a specific entity by providing its UUID.

Usage Example

Parameters & Returns

Parameters

The hook returns a function that accepts an object with the following fields:
entityId
string
required
The unique UUID of the entity to fetch.

Returns

The function resolves with an object representing the fetched entity:
Entity
object
The details of the retrieved entity.