Convert a screen's data read into an NsLoad region (OnLoad, Reload, Retry, NsPartial.Handoff for dashboard cards). Use whenever you touch a Blazor screen or card that loads in OnCreatedAsync, OnParametersSetAsync or OnInitializedAsync, or when a load failure shows as a toast, a card reads twice, or an empty state lies about a failed read.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Convert To Nsload?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nsail-ar-convert-to-nsload)
---
name: convert-to-nsload
description: Convert a screen's data read into an NsLoad region (OnLoad, Reload, Retry, NsPartial.Handoff for dashboard cards). Use whenever you touch a Blazor screen or card that loads in OnCreatedAsync, OnParametersSetAsync or OnInitializedAsync, or when a load failure shows as a toast, a card reads twice, or an empty state lies about a failed read.
---
# Convert to NsLoad
The contract — three states and no fourth, the Retry, `Reload()`, honest empty states, a card's
`Handoff` inside `OnLoad`, a paged list keeping its `OnQuery` — is
`${CLAUDE_PLUGIN_ROOT}/doctrine/ui/hosts.md`, *NsLoad* (and *NsDashboard* for where a card
reads); the handoff record is `${CLAUDE_PLUGIN_ROOT}/doctrine/intentional-ui-cases-controls.md`,
"One arrival, one loading". Read them first. **A screen being touched for ANY reason converts.**
## Find them
A `.razor` with a `Send`/`Handoff` in `OnCreatedAsync`/`OnParametersSetAsync`/`OnInitializedAsync`
and no `<NsLoad`.
## Recipe
1. Move the read into the region's **`OnLoad`**: a load failure is never a toast and never the
splash — the region reports it in place.
2. Pass **`args.CancellationToken`** to whatever the read sends. A card reads through
`NsPartial.Handoff`, never `Send`, still inside `OnLoad`: **pass the token by name**
(`Handoff(message, cancellationToken: args.CancellationToken)`) — the second positional
parameter is the scope.
3. Route the screen's re-reads (a filter moved, a `*Saved` event, a deleted row) through
**`Reload()`** on an `@ref`. A paged list keeps its `OnQuery`, which writes the question down
and calls `Reload()`.
4. Keep the empty states honest: nothing found renders the content's own empty state; a read that
never happened prints no figures (`DailySalesCard`); a failure replaces the content.
5. A card with no subject reads once on mount; a subject card guards on the subject a read has
STARTED for, claimed before the await (hosts.md, *NsDashboard*: the handoff is take-once).
## Check
`NsLoad` reads once, from its own `OnInitializedAsync`: delete any read left in
`OnCreatedAsync`/`OnParametersSetAsync` that the region now owns — two owners is the double
load. A card shows nothing until its read answers (`CardHandoffTests`).