Prometheus Entity Management API
    Preparing search index...
    • Subscribe to a single normalized entity: populates the graph via fetch/normalize, dedupes in-flight work, and revalidates when stale. Solves “query-owned silos” by keeping one canonical record every list/detail reads through.

      Type Parameters

      • TRaw
      • TEntity extends object

      Parameters

      • opts: EntityQueryOptions<TRaw, TEntity>

        Entity query instruction (EntityQueryOptions): type, id, fetch, normalize, optional staleTime / enabled

      Returns UseEntityResult<TEntity>

      Merged entity (entities + patches), loading/error/stale flags, and refetch

      const { data, isLoading, refetch } = useEntity({
      type: "Project",
      id: projectId,
      fetch: (id) => api.getProject(id),
      normalize: (raw) => ({ ...raw, id: String(raw.id) }),
      });