umbraco-state-management
Installation
SKILL.md
Umbraco State Management
What is it?
States in Umbraco are containers for reactive values that enable communication across component instances using the Observable pattern. An Umbraco State is a container for a value that you can create Observables from, which allows multiple observers to subscribe and automatically receive updates when the state changes. This pattern is particularly useful for sharing data between contexts and elements without tight coupling.
Documentation
Always fetch the latest docs before implementing:
- Main docs: https://docs.umbraco.com/umbraco-cms/customizing/foundation/states
- Foundation: https://docs.umbraco.com/umbraco-cms/customizing/foundation
- Context API: https://docs.umbraco.com/umbraco-cms/customizing/foundation/context-api
Workflow
- Fetch docs - Use WebFetch on the URLs above
- Ask questions - What type of state? Who observes? Where to provide observable?
- Generate code - Implement state with observables based on latest docs
- Explain - Show what was created and how observation works