Suspense-compatible version of useEntity. Throws a promise while the entity is loading, allowing React Suspense boundaries to show fallback UI. Once data is available, returns the entity data directly (never null).
useEntity
Same as useEntity (EntityQueryOptions)
EntityQueryOptions
data plus isFetching, isStale, and refetch
data
isFetching
isStale
refetch
Promise while loading (caught by the nearest Suspense boundary)
Error if the fetch fails with no data, if id is missing when required, or if the entity never resolves
id
Suspense-compatible version of
useEntity. Throws a promise while the entity is loading, allowing React Suspense boundaries to show fallback UI. Once data is available, returns the entity data directly (never null).