Skip to content
C

coordinate-components

Share state between components

by dotnetFree

#4292in AI Skills
0In stores

Description

Coordinate Components is a Blazor agent skill from the dotnet/skills repository for sharing state between components that are not linked by…

Highlights

  • Picks a state-sharing mechanism by scope
  • CascadingValue for subtree values
  • CascadingValueSource through DI for app-wide state
  • Scoped services with change events for mutable state
  • Reads AGENTS.md before editing

Ratings & Reviews

No ratings yet

Be the first to rate coordinate-components.

People also visit

A

author-component

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

AI Skills
Get
U

use-js-interop

Add, review, or fix JavaScript interop in Blazor components

AI Skills
Get
S

support-prerendering

Make interactive Blazor components work correctly with prerendering

AI Skills
Get
P

plan-ui-change

Plan complex Blazor UI features by decomposing them into focused components

AI Skills
Get
C

create-blazor-project

Create a new ASP.NET Core web application or web site using Blazor

AI Skills
Get
C

csharp-developer

Building C# applications with .NET 8+, ASP.NET Core APIs, or Blazor web apps

AI Skills
Get

coordinate-components FAQ

What problem does this skill solve?

Sharing state between Blazor components that don't have a direct parent-child parameter relationship.

Which mechanisms does it use?

CascadingValue for a subtree, CascadingValueSource<T> through DI for app-wide state across render modes, and a scoped service with an Action event for mutable state within a circuit.

What about simple parent to child data?

For one level from parent to child, the skill points to [Parameter] and EventCallback in the author-component skill. Persisting state across prerendering is covered by the support-prerendering skill.

How do I add this skill to my agent?

Use the skills CLI: `npx skills add https://github.com/dotnet/skills --skill coordinate-components`. This pulls the skill from dotnet/skills on GitHub.

Has the skill been security audited?

Yes. Results shown on skills.sh: Gen Agent Trust Hub: Pass, Socket: Pass, Snyk: Pass.

What are the best coordinate-components alternatives?

Popular alternatives to coordinate-components include author-component, use-js-interop and support-prerendering. See all coordinate-components alternatives

Developer Stuff

Badges