
fetch-and-send-data
Call APIs, load data into components, and handle the async lifecycle in Blazor
by dotnetFree
Description
fetch-and-send-data is an agent skill from the dotnet/skills collection, listed on skills.sh. It helps an AI agent work with data in Blazor components: calling APIs, loading data into a component, submitting data to an API, and handling the async lifecycle. The skill starts by reading AGENTS.md and checking the component's interactivity mode, which can be static SSR, Server, WebAssembly or Auto. In Server mode the component can inject services or a DbContext directly, using StreamRendering for loading states and PersistentState with a guard during prerender. In WebAssembly and Auto mode the component goes through an API with HttpClient, and HttpClient is registered for external APIs. A skill is a SKILL.md file of instructions that an AI agent loads only when a task calls for it. The source is public on GitHub.…
Highlights
- Checks the Blazor interactivity mode first
- Loads data with StreamRendering or PersistentState
- HttpClient setup for WebAssembly and Auto
- Covers fetching and submitting data
Ratings & Reviews
No ratings yet
Be the first to rate fetch-and-send-data.
People also visit

support-prerendering
Make interactive Blazor components work correctly with prerendering

author-component
Create or review Blazor components (.razor files) with correct architecture

plan-ui-change
Plan complex Blazor UI features by decomposing them into focused components

csharp-developer
Building C# applications with .NET 8+, ASP.NET Core APIs, or Blazor web apps
fetch-and-send-data FAQ
What does the fetch-and-send-data skill do?
It guides an AI agent through loading and submitting data in a Blazor component, including the async loading lifecycle.
How does it differ by render mode?
Server components can use services or a DbContext directly. WebAssembly and Auto components reach data only through an API with HttpClient.
How do I install it?
Run: npx skills add https://github.com/dotnet/skills --skill fetch-and-send-data
Is it open source?
Yes. The skill is in a public GitHub repository maintained by dotnet.
What are the best fetch-and-send-data alternatives?
Popular alternatives to fetch-and-send-data include collect-user-input, support-prerendering and use-js-interop. See all fetch-and-send-data alternatives








