بنقرة واحدة
uno-mvux-messaging
Use messaging to sync MVUX states with entity changes.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Use messaging to sync MVUX states with entity changes.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Create and use commands in MVUX for user interactions.
Create and use IFeed<T> for async data in MVUX.
Display async feed data with FeedView control.
Create and use IListFeed<T> for reactive collections in MVUX.
Create and use IListState<T> for mutable reactive collections in MVUX.
Understand MVUX (Model-View-Update-eXtended) architecture in Uno Platform.
| name | uno-mvux-messaging |
| description | Use messaging to sync MVUX states with entity changes. |
| when_to_use | Use when CRUD operations that should update all views showing the same data, decoupling services from models — services broadcast changes, models react, keeping multiple views/pages in sync when shared entities change, or using `EntityMessage<T>` with CommunityToolkit.Mvvm messenger. |
| metadata | {"author":"uno-platform","version":"2.3","category":"mvux"} |
Docs lookup: call
uno_platform_docs_search(...)first, thenuno_platform_docs_fetch(sourcePath="…")using thesourcePathfield from a result (a relative.mdpath; add the result'sanchorfor a section). Never pass a URL, a.htmllink, or a hand-built path.
Search for and fetch the messaging documentation:
uno_platform_docs_search("MVUX messaging EntityMessage synchronization CRUD")
Primary documentation pages:
external/uno.extensions/doc/Learn/Mvux/Advanced/Messaging.mdexternal/uno.extensions/doc/Learn/Mvux/Walkthrough/Messaging.howto.mdFetch the reference page:
uno_platform_docs_fetch(sourcePath="external/uno.extensions/doc/Learn/Mvux/Advanced/Messaging.md")
For step-by-step implementation:
uno_platform_docs_fetch(sourcePath="external/uno.extensions/doc/Learn/Mvux/Walkthrough/Messaging.howto.md")
This covers when to use messaging, sending entity messages from services, observing changes in models, and manual message handling.
From the fetched docs, the messaging pattern involves:
EntityMessage<T> via IMessenger.Send(...).Observe(messenger) on a ListState to auto-apply changesIf the user needs custom logic when messages arrive, the reference page covers the Update extension methods that allow manual application of EntityMessage<T> to states.
IMessenger as a singleton in DI: services.AddSingleton<IMessenger, WeakReferenceMessenger>()EntityMessage<T> carries an entity change type (Created, Updated, Deleted) and the entity.Observe(messenger) on a ListState auto-applies incoming entity changesuno-mvux-records skill)Uno.Extensions.Reactive.Messaging