Docs / data / useReports

useReports

hooknot for built apps

List generated reports with reactive loading and error state.

import { useReports } from 'flowstack-sdk'

Report management.

Signature

const { reports, isLoading, error, refreshReports } = useReports()

Returns

FieldTypeDescription
reportsReportInfo[]Reports, each { name, content, format, createdAt }.
isLoadingbooleanFetch in flight.
errorstring | nullLast error message.
refreshReports() => Promise<void>Manual re-fetch.

Examples

const {
  reports,        // ReportInfo[] — { name, content, format, createdAt }
  isLoading,      // boolean
  error,          // string | null
  refreshReports, // () => Promise<void>
} = useReports();

See also

useDatasets · useVisualizations · useQuery

Source: README.md#usereports · Also available in llms-full.txt and registry.json.