data-fetching
Installation
SKILL.md
Data Runtime (App Code Phase)
Generate React app code that fetches Power BI data at runtime using the
Fabric SDK. Queries should already be validated and saved as .dax files
(use the data-discovery skill for that).
Data Fetching
- The
useSemanticModelQueryhook (src/hooks/use-semantic-model-query.ts) is the primary way to fetch data in React components. It wraps the Fabric SDK client. - The hook uses
getFabricClient()internally — components should use the hook, not the client directly. - For details on the SDK's caching behavior, error handling, and protocol options, see the
fabric-sdkskill.