uno-mvux-feed-basics

Create typed IFeed<T> streams from Task or IAsyncEnumerable sources.

9|1|Updated Dec 10, 2024
One-click install
npx skills add https://github.com/unoplatform/studio --skill uno-mvux-feed-basics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: uno-mvux-feed-basics
Source: https://github.com/unoplatform/studio/tree/main/plugins/uno-platform-studio/skills/uno-mvux-feed-basics
Command: npx skills add https://github.com/unoplatform/studio --skill uno-mvux-feed-basics

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

MVUX feeds simplify consuming asynchronous data by providing a typed IFeed<T> that encapsulates loading, error, and value states, reducing boilerplate in UI code.

Core Features & Use Cases

  • Create feeds from Task<T> (Feed.Async) or IAsyncEnumerable<T> (Feed.AsyncEnumerable) and from custom async logic (Feed.Create).
  • Transform and compose feeds with operators like Select and Where, and refresh data with Signal.
  • Bind feeds to MVUX views to automatically reflect loading, errors, and data changes in real-time.

Quick Start

Create a basic feed with Feed.Async from a service method and bind it to an MVUX view to automatically handle loading, errors, and data state.

Frequently Asked Questions about uno-mvux-feed-basics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage asynchronous data streams in MVUX without writing UI boilerplate?

MVUX feeds manage asynchronous data streams by providing a typed IFeed<T> that encapsulates loading, error, and value states, reducing boilerplate in UI code. This handles state tracking automatically when binding to MVUX views.

How do I create an MVUX feed from a Task-returning service method?

You can create an MVUX feed from a Task-returning service method using Feed.Async. This builds a read-only feed that encapsulates the data, loading, and error states for UI binding.

Can I transform and filter async data feeds using LINQ-style operators?

Yes, you can transform and compose MVUX feeds using operators like Select and Where. These operators allow you to filter and map asynchronous data streams directly.

Does MVUX feed support CancellationToken-based service methods and IAsyncEnumerable?

Yes, MVUX feeds support CancellationToken-based service methods and IAsyncEnumerable<T> through Feed.AsyncEnumerable. This ensures compatibility with standard dotnet asynchronous patterns.

What is the best way to refresh async data across MVUX UI components?

The best way to refresh async data across MVUX UI components is using Signal. It triggers feed updates while maintaining automatic state tracking across the bound views.

When should I use Feed.Create instead of Feed.Async for loading data?

Use Feed.Create when you need to encapsulate custom async logic beyond standard Task or IAsyncEnumerable patterns. Use Feed.Async for straightforward Task-returning service method calls.