Requires the
entities bundle. A project without the entities bundle returns 403 database/tables-not-available. See Bundles.Overview
useFetchEntity returns a function that fetches a single entity by its Sublay entity ID. Use this for on-demand fetches outside of EntityProvider.
Usage Example
Parameters
string
required
The Sublay entity ID to fetch.
string | string[]
Optional. Populate related fields. Accepted values:
"user", "space", "topComment", "saved", "files", "grants".Returns
Entity
The fetched entity. When
spaceReputation is requested, the embedded author carries an added spaceReputation number. See Entity data model and Reputation.
