[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69B84YJWJQ4F7HHG19E6XBR":3,"skill-same:01M69B84YJWJQ4F7HHG19E6XBR":74},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":46,"linkOnly":47,"markdownContent":48,"markdownBody":49,"frontMatter":50,"refName":51,"commitSha":52,"skillDirectory":53,"forksCount":54,"repositoryHtmlUrl":55,"repositoryHomepageUrl":17,"ownerHtmlUrl":56,"ownerBlogUrl":57,"ownerDescription":58,"updatedAt":59,"install":60,"resources":73},"01M69B84YJWJQ4F7HHG19E6XBR","reactor-async","Reactor 异步数据获取与处理","Async data in Reactor — `UseResource` (single fetch), `UseMutation` (writes + optimistic updates), `UseInfiniteResource` (cursor pagination), and `Pending` (bubble-up fallback). Use when fetching, caching, paginating, or mutating server data.","Reactor 中的异步数据——`UseResource`（单次获取）、`UseMutation`（写入 + 乐观更新）、`UseInfiniteResource`（游标分页）和 `Pending`（向上冒泡的回退显示）。在获取、缓存、分页或修改服务器数据时使用。","microsoft\u002Fmicrosoft-ui-reactor","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69B6EF21X2GHARCXN2BH1K1",896,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmicrosoft-ui-reactor\u002Fblob\u002Fmain\u002Fplugins\u002Freactor\u002Fskills\u002Freactor-async\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRASNPVNJVQQJ4KZX8XM5D","前端开发与界面实现","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],"reactor async","async","server","data","fetch","cursor","use","up","fallback","pagination","caching","updates","pending","single","when","2026-11-10 10:12:30",false,"---\nname: reactor-async\ndescription: \"Async data in Reactor — `UseResource` (single fetch), `UseMutation` (writes + optimistic updates), `UseInfiniteResource` (cursor pagination), and `Pending` (bubble-up fallback). Use when fetching, caching, paginating, or mutating server data.\"\n---\n\n# Async Resources in Reactor\n\nReactor replaces the `UseState + UseEffect + manual-cancellation` dance with\nthree hooks. **Reads return `AsyncValue\u003CT>`, writes return a `Mutation`\nhandle.** The hook owns the cancellation token, dedups across siblings,\ncaches results in a shared `QueryCache`, and drops late results on unmount.\n\nAvailable on any `Component` subclass directly; on `RenderContext` as\nextension methods for function components (`Memo(ctx => ...)` or\n`RenderEachTime(ctx => ...)`).\n\n## 1. UseResource — single fetch\n\n```csharp\nAsyncValue\u003CT> UseResource\u003CT>(\n    Func\u003CCancellationToken, Task\u003CT>> fetcher,\n    object[] deps,\n    ResourceOptions? options = null);\n```\n\n`AsyncValue\u003CT>` is a sealed 4-state record: `Loading`, `Data(T Value)`,\n`Error(Exception)`, `Reloading(T Previous)` (stale-while-revalidate).\nPattern-match with a `switch`:\n\n```csharp\nclass UserCard : Component\n{\n    public override Element Render()\n    {\n        var user = UseResource(\n            ct => Api.GetUserAsync(userId, ct),\n            deps: new object[] { userId });\n\n        return user switch\n        {\n            AsyncValue\u003CUser>.Loading   => TextBlock(\"Loading…\"),\n            AsyncValue\u003CUser>.Data d    => TextBlock(d.Value.Name).Bold(),\n            AsyncValue\u003CUser>.Reloading r => TextBlock(r.Previous.Name).Opacity(0.5),\n            AsyncValue\u003CUser>.Error e   => TextBlock($\"Error: {e.Exception.Message}\"),\n            _ => Empty()\n        };\n    }\n}\n```\n\nOr use `user.Match\u003CElement>(loading, data, error, reloading?)` — `reloading`\ndefaults to `data` so stale values stay visible.\n\n**Rules:**\n- Fetcher must be **idempotent** (reads only — the analyzer `REACTOR_HOOKS_006`\n  warns on names like `Post*`, `Create*`, `Delete*`, `Update*`, `Save*`, `Send*`).\n  For writes, use `UseMutation`.\n- Fetcher must observe `ct` — return a cancelled task or check\n  `ct.IsCancellationRequested`. Cancellation fires on deps change, unmount,\n  and cache invalidation.\n- `deps` must be value-comparable. Don't pass new lambdas or freshly\n  constructed collections each render — memoize with `UseMemo` or use\n  scalar values.\n\n**`ResourceOptions` (all optional):**\n\n| Option | Default | Meaning |\n|---|---|---|\n| `StaleTime` | `0s` | Within this window, return `Data` without refetching. After, enter `Reloading` and refetch. |\n| `CacheTime` | `5m` | Keep entry in cache this long after zero subscribers. |\n| `RetryCount` | `0` | Exponential backoff: 100 × 2^attempt ms. |\n| `RefetchOnMount` | `true` | Refetch even on cache hit. |\n| `RefetchOnWindowFocus` | `false` | Invalidate stale entries on window activation. |\n| `CacheKey` | `null` | Override auto-key. Default: `\"{hookId}\u002F{hash(deps)}\"`. |\n\n## 2. UseMutation — writes with optimistic updates\n\n```csharp\nMutation\u003CTInput, TResult> UseMutation\u003CTInput, TResult>(\n    Func\u003CTInput, CancellationToken, Task\u003CTResult>> mutator,\n    MutationOptions\u003CTInput, TResult>? options = null);\n```\n\nThe returned `Mutation` is stable across renders. Properties:\n`IsPending`, `Error?`, `LastResult?`. Call `mutation.RunAsync(input)` from\nclick handlers; call `mutation.Reset()` to clear error\u002Fresult.\n\n```csharp\nvar (todos, setTodos) = UseState\u003CIReadOnlyList\u003CTodo>>([]);\n\nvar addTodo = UseMutation\u003CTodoInput, Todo>(\n    mutator: (input, ct) => Api.AddTodoAsync(input, ct),\n    options: new MutationOptions\u003CTodoInput, Todo>(\n        \u002F\u002F Synchronous — lands in the next render before the network call.\n        OnOptimistic: input =>\n            setTodos([.. todos, new Todo(input.Title, IsTemporary: true)]),\n        OnSuccess: (todo, _) =>\n            setTodos([.. todos.Select(t => t.IsTemporary ? todo : t)]),\n        OnError: (_, input) =>\n            setTodos([.. todos.Where(t => t.Title != input.Title)]),\n        \u002F\u002F Any sibling UseResource subscribed to these keys refetches.\n        InvalidateKeys: [\"todos\u002Flist\"]));\n\nreturn VStack(\n    Button(\"Add\", () => _ = addTodo.RunAsync(new TodoInput(\"New\")))\n        .IsEnabled(!addTodo.IsPending));\n```\n\n- `OnOptimistic` runs synchronously on the caller. If it throws, the mutator\n  never fires — prevents half-applied state.\n- `InvalidateKeys` fires on success only, **not** on error.\n- Overlapping `RunAsync` calls are allowed; each has its own token. Gate\n  with `IsPending` if you need serial semantics.\n- Unmount cancels the mutator's token. `OnError` is silent on cancellation.\n\n## 3. UseInfiniteResource — cursor pagination\n\n```csharp\nInfiniteResource\u003CTItem> UseInfiniteResource\u003CTItem, TCursor>(\n    Func\u003CTCursor?, CancellationToken, Task\u003CPage\u003CTItem, TCursor>>> fetchPage,\n    object[] deps,\n    InfiniteResourceOptions? options = null);  \u002F\u002F PageSize default 50\n```\n\n**Pull model.** The virtualizer calls `resource.ItemAt(i)` per visible row;\nthe hook fetches whichever page covers `i`, dedups, and caches. Unfetched\nor in-flight slots return `null` (render a shimmer).\n\n```csharp\nvar commits = UseInfiniteResource\u003CCommit, string>(\n    fetchPage: async (cursor, ct) =>\n    {\n        var (items, next, total) = await Api.GetCommitsPageAsync(cursor, ct);\n        return new Page\u003CCommit, string>(items, next, total);\n    },\n    deps: new object[] { repoId });\n\n\u002F\u002F In your virtualizer's renderItem:\nvar commit = commits.ItemAt(rowIndex);\nreturn commit is null\n    ? TextBlock(\"…\").Opacity(0.4)\n    : TextBlock($\"{commit.Sha} — {commit.Message}\");\n```\n\n**Resource API:**\n\n| Member | Purpose |\n|---|---|\n| `Items : IReadOnlyList\u003CTItem?>` | Flat virtual array; null = placeholder. |\n| `TotalCount?`, `HasMore`, `EstimatedRemaining` | Metadata. |\n| `LoadState` | `Loading` \u002F `Idle` \u002F `EndOfList` \u002F `Error(ex)` — aggregate of most recent page fetch. |\n| `ItemAt(index)` | Get item; triggers page fetch if uncached. |\n| `EnsureRange(first, last)` | Batch prefetch — call from `onVisibleRangeChanged`. |\n| `FetchNext()` | Manually fetch the next page. |\n| `Retry()` | Retry the most recent failed page only. |\n| `Refresh()` | Invalidate all pages and refetch from page 0 (pull-to-refresh). |\n\nFooter UI off `LoadState`:\n\n```csharp\ncommits.LoadState switch\n{\n    LoadState.Loading       => ProgressRing(),\n    LoadState.Idle when !commits.HasMore => TextBlock(\"End of list\"),\n    LoadState.Error e       => Button(\"Retry\", () => commits.Retry()),\n    _ => Empty()\n}\n```\n\n**Notes:**\n- Cursor paging is serial — page N-1 must land before page N (the cursor\n  lives in N-1's payload). For parallel offset paging, use an offset as\n  the cursor type.\n- Deps change cancels all in-flight pages, unsubscribes cache keys, and\n  restarts from page 0.\n\n## 4. Pending — bubble-up fallback\n\nRender a single fallback for a subtree whose components each load\nindependent resources:\n\n```csharp\nPendingFactory.Pending(\n    fallback: TextBlock(\"Loading dashboard…\").Opacity(0.5),\n    child: VStack(\n        Component\u003CUserHeader>(),    \u002F\u002F has UseResource\n        Component\u003CRecentActivity>(),\u002F\u002F has UseInfiniteResource\n        Component\u003CStats>()          \u002F\u002F has UseResource\n    ))\n```\n\n- Both trees mount — the child's hooks run in the background.\n- Fallback shows while **any** nested resource is in `Loading`.\n- `Reloading` (refetch with data present) does **not** re-trigger the\n  fallback. No flash on revalidation.\n\n## 5. Gotchas\n\n**Non-idempotent fetcher (`REACTOR_HOOKS_006`).** The analyzer flags\n`UseResource(ct => api.PostComment(...))`. Reads retry and refetch; use\n`UseMutation` for writes.\n\n**Unstable deps.** `deps: new object[] { userId }` allocates a fresh array\neach render — the deps-change detector compares element-wise, so scalar\n`userId` is fine, but a fresh `new Filter { ... }` object is not.\nMemoize complex deps:\n\n```csharp\nvar deps = UseMemo(() => new object[] { filter, sort }, filter, sort);\nvar items = UseResource(ct => Api.SearchAsync(filter, sort, ct), deps);\n```\n\n**Don't share `CacheKey` across unrelated hooks.** Auto-key keeps siblings\nindependent. Explicit `CacheKey` is for two distant subtrees that should\nobserve the same entry.\n\n**Live-mutation overlay.** `UseInfiniteResource.Items` is server-sourced\nand immutable — the hook re-renders when pages land, not when you edit a\nrow. Keep optimistic edits in a separate `Dictionary\u003Cint, T>` overlay that\ntakes precedence over `Items[i]` at read time.\n\n**`AsyncValue.Match` allocates** one delegate per arm. In per-row render\npaths (inside a virtualized list), prefer a `switch` expression for\nexhaustiveness checking and zero per-call allocation.\n\n## 6. See also\n\n- `docs\u002Fguide\u002Fasync-resources-cookbook.md` — task-oriented recipes.\n- `docs\u002Freference\u002Fasync-system.md` — full state-machine reference, race\n  analysis, known bugs\u002Fgaps.\n- `docs\u002Fspecs\u002F020-async-resources-design.md` — the design spec.\n","# Async Resources in Reactor\n\nReactor replaces the `UseState + UseEffect + manual-cancellation` dance with\nthree hooks. **Reads return `AsyncValue\u003CT>`, writes return a `Mutation`\nhandle.** The hook owns the cancellation token, dedups across siblings,\ncaches results in a shared `QueryCache`, and drops late results on unmount.\n\nAvailable on any `Component` subclass directly; on `RenderContext` as\nextension methods for function components (`Memo(ctx => ...)` or\n`RenderEachTime(ctx => ...)`).\n\n## 1. UseResource — single fetch\n\n```csharp\nAsyncValue\u003CT> UseResource\u003CT>(\n    Func\u003CCancellationToken, Task\u003CT>> fetcher,\n    object[] deps,\n    ResourceOptions? options = null);\n```\n\n`AsyncValue\u003CT>` is a sealed 4-state record: `Loading`, `Data(T Value)`,\n`Error(Exception)`, `Reloading(T Previous)` (stale-while-revalidate).\nPattern-match with a `switch`:\n\n```csharp\nclass UserCard : Component\n{\n    public override Element Render()\n    {\n        var user = UseResource(\n            ct => Api.GetUserAsync(userId, ct),\n            deps: new object[] { userId });\n\n        return user switch\n        {\n            AsyncValue\u003CUser>.Loading   => TextBlock(\"Loading…\"),\n            AsyncValue\u003CUser>.Data d    => TextBlock(d.Value.Name).Bold(),\n            AsyncValue\u003CUser>.Reloading r => TextBlock(r.Previous.Name).Opacity(0.5),\n            AsyncValue\u003CUser>.Error e   => TextBlock($\"Error: {e.Exception.Message}\"),\n            _ => Empty()\n        };\n    }\n}\n```\n\nOr use `user.Match\u003CElement>(loading, data, error, reloading?)` — `reloading`\ndefaults to `data` so stale values stay visible.\n\n**Rules:**\n- Fetcher must be **idempotent** (reads only — the analyzer `REACTOR_HOOKS_006`\n  warns on names like `Post*`, `Create*`, `Delete*`, `Update*`, `Save*`, `Send*`).\n  For writes, use `UseMutation`.\n- Fetcher must observe `ct` — return a cancelled task or check\n  `ct.IsCancellationRequested`. Cancellation fires on deps change, unmount,\n  and cache invalidation.\n- `deps` must be value-comparable. Don't pass new lambdas or freshly\n  constructed collections each render — memoize with `UseMemo` or use\n  scalar values.\n\n**`ResourceOptions` (all optional):**\n\n| Option | Default | Meaning |\n|---|---|---|\n| `StaleTime` | `0s` | Within this window, return `Data` without refetching. After, enter `Reloading` and refetch. |\n| `CacheTime` | `5m` | Keep entry in cache this long after zero subscribers. |\n| `RetryCount` | `0` | Exponential backoff: 100 × 2^attempt ms. |\n| `RefetchOnMount` | `true` | Refetch even on cache hit. |\n| `RefetchOnWindowFocus` | `false` | Invalidate stale entries on window activation. |\n| `CacheKey` | `null` | Override auto-key. Default: `\"{hookId}\u002F{hash(deps)}\"`. |\n\n## 2. UseMutation — writes with optimistic updates\n\n```csharp\nMutation\u003CTInput, TResult> UseMutation\u003CTInput, TResult>(\n    Func\u003CTInput, CancellationToken, Task\u003CTResult>> mutator,\n    MutationOptions\u003CTInput, TResult>? options = null);\n```\n\nThe returned `Mutation` is stable across renders. Properties:\n`IsPending`, `Error?`, `LastResult?`. Call `mutation.RunAsync(input)` from\nclick handlers; call `mutation.Reset()` to clear error\u002Fresult.\n\n```csharp\nvar (todos, setTodos) = UseState\u003CIReadOnlyList\u003CTodo>>([]);\n\nvar addTodo = UseMutation\u003CTodoInput, Todo>(\n    mutator: (input, ct) => Api.AddTodoAsync(input, ct),\n    options: new MutationOptions\u003CTodoInput, Todo>(\n        \u002F\u002F Synchronous — lands in the next render before the network call.\n        OnOptimistic: input =>\n            setTodos([.. todos, new Todo(input.Title, IsTemporary: true)]),\n        OnSuccess: (todo, _) =>\n            setTodos([.. todos.Select(t => t.IsTemporary ? todo : t)]),\n        OnError: (_, input) =>\n            setTodos([.. todos.Where(t => t.Title != input.Title)]),\n        \u002F\u002F Any sibling UseResource subscribed to these keys refetches.\n        InvalidateKeys: [\"todos\u002Flist\"]));\n\nreturn VStack(\n    Button(\"Add\", () => _ = addTodo.RunAsync(new TodoInput(\"New\")))\n        .IsEnabled(!addTodo.IsPending));\n```\n\n- `OnOptimistic` runs synchronously on the caller. If it throws, the mutator\n  never fires — prevents half-applied state.\n- `InvalidateKeys` fires on success only, **not** on error.\n- Overlapping `RunAsync` calls are allowed; each has its own token. Gate\n  with `IsPending` if you need serial semantics.\n- Unmount cancels the mutator's token. `OnError` is silent on cancellation.\n\n## 3. UseInfiniteResource — cursor pagination\n\n```csharp\nInfiniteResource\u003CTItem> UseInfiniteResource\u003CTItem, TCursor>(\n    Func\u003CTCursor?, CancellationToken, Task\u003CPage\u003CTItem, TCursor>>> fetchPage,\n    object[] deps,\n    InfiniteResourceOptions? options = null);  \u002F\u002F PageSize default 50\n```\n\n**Pull model.** The virtualizer calls `resource.ItemAt(i)` per visible row;\nthe hook fetches whichever page covers `i`, dedups, and caches. Unfetched\nor in-flight slots return `null` (render a shimmer).\n\n```csharp\nvar commits = UseInfiniteResource\u003CCommit, string>(\n    fetchPage: async (cursor, ct) =>\n    {\n        var (items, next, total) = await Api.GetCommitsPageAsync(cursor, ct);\n        return new Page\u003CCommit, string>(items, next, total);\n    },\n    deps: new object[] { repoId });\n\n\u002F\u002F In your virtualizer's renderItem:\nvar commit = commits.ItemAt(rowIndex);\nreturn commit is null\n    ? TextBlock(\"…\").Opacity(0.4)\n    : TextBlock($\"{commit.Sha} — {commit.Message}\");\n```\n\n**Resource API:**\n\n| Member | Purpose |\n|---|---|\n| `Items : IReadOnlyList\u003CTItem?>` | Flat virtual array; null = placeholder. |\n| `TotalCount?`, `HasMore`, `EstimatedRemaining` | Metadata. |\n| `LoadState` | `Loading` \u002F `Idle` \u002F `EndOfList` \u002F `Error(ex)` — aggregate of most recent page fetch. |\n| `ItemAt(index)` | Get item; triggers page fetch if uncached. |\n| `EnsureRange(first, last)` | Batch prefetch — call from `onVisibleRangeChanged`. |\n| `FetchNext()` | Manually fetch the next page. |\n| `Retry()` | Retry the most recent failed page only. |\n| `Refresh()` | Invalidate all pages and refetch from page 0 (pull-to-refresh). |\n\nFooter UI off `LoadState`:\n\n```csharp\ncommits.LoadState switch\n{\n    LoadState.Loading       => ProgressRing(),\n    LoadState.Idle when !commits.HasMore => TextBlock(\"End of list\"),\n    LoadState.Error e       => Button(\"Retry\", () => commits.Retry()),\n    _ => Empty()\n}\n```\n\n**Notes:**\n- Cursor paging is serial — page N-1 must land before page N (the cursor\n  lives in N-1's payload). For parallel offset paging, use an offset as\n  the cursor type.\n- Deps change cancels all in-flight pages, unsubscribes cache keys, and\n  restarts from page 0.\n\n## 4. Pending — bubble-up fallback\n\nRender a single fallback for a subtree whose components each load\nindependent resources:\n\n```csharp\nPendingFactory.Pending(\n    fallback: TextBlock(\"Loading dashboard…\").Opacity(0.5),\n    child: VStack(\n        Component\u003CUserHeader>(),    \u002F\u002F has UseResource\n        Component\u003CRecentActivity>(),\u002F\u002F has UseInfiniteResource\n        Component\u003CStats>()          \u002F\u002F has UseResource\n    ))\n```\n\n- Both trees mount — the child's hooks run in the background.\n- Fallback shows while **any** nested resource is in `Loading`.\n- `Reloading` (refetch with data present) does **not** re-trigger the\n  fallback. No flash on revalidation.\n\n## 5. Gotchas\n\n**Non-idempotent fetcher (`REACTOR_HOOKS_006`).** The analyzer flags\n`UseResource(ct => api.PostComment(...))`. Reads retry and refetch; use\n`UseMutation` for writes.\n\n**Unstable deps.** `deps: new object[] { userId }` allocates a fresh array\neach render — the deps-change detector compares element-wise, so scalar\n`userId` is fine, but a fresh `new Filter { ... }` object is not.\nMemoize complex deps:\n\n```csharp\nvar deps = UseMemo(() => new object[] { filter, sort }, filter, sort);\nvar items = UseResource(ct => Api.SearchAsync(filter, sort, ct), deps);\n```\n\n**Don't share `CacheKey` across unrelated hooks.** Auto-key keeps siblings\nindependent. Explicit `CacheKey` is for two distant subtrees that should\nobserve the same entry.\n\n**Live-mutation overlay.** `UseInfiniteResource.Items` is server-sourced\nand immutable — the hook re-renders when pages land, not when you edit a\nrow. Keep optimistic edits in a separate `Dictionary\u003Cint, T>` overlay that\ntakes precedence over `Items[i]` at read time.\n\n**`AsyncValue.Match` allocates** one delegate per arm. In per-row render\npaths (inside a virtualized list), prefer a `switch` expression for\nexhaustiveness checking and zero per-call allocation.\n\n## 6. See also\n\n- `docs\u002Fguide\u002Fasync-resources-cookbook.md` — task-oriented recipes.\n- `docs\u002Freference\u002Fasync-system.md` — full state-machine reference, race\n  analysis, known bugs\u002Fgaps.\n- `docs\u002Fspecs\u002F020-async-resources-design.md` — the design spec.\n",{"name":5,"description":7},"main","74791562c11792f7c0e2dd875f1e82b94d70b397","plugins\u002Freactor\u002Fskills\u002Freactor-async",67,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmicrosoft-ui-reactor","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-15 01:08:04",{"source":9,"skillName":5,"commands":61,"prompt":71,"zipAvailable":72},[62,65,68],{"tool":63,"command":64},"npx","npx skills add microsoft\u002Fmicrosoft-ui-reactor --skill reactor-async",{"tool":66,"command":67},"bunx","bunx skills add microsoft\u002Fmicrosoft-ui-reactor --skill reactor-async",{"tool":69,"command":70},"pnpm","pnpm dlx skills add microsoft\u002Fmicrosoft-ui-reactor --skill reactor-async","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmicrosoft-ui-reactor\u002Fblob\u002Fmain\u002Fplugins\u002Freactor\u002Fskills\u002Freactor-async\u002FSKILL.md",true,[],[75,89,121,150,175,201],{"skillNo":76,"name":77,"nameZh":78,"description":17,"descriptionZh":79,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":80,"categories":81,"keywords":88,"publishedAt":46},"01M69B94E15PYYWXAGFV832MRK","Charting","图表制作","","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmicrosoft-ui-reactor\u002Fblob\u002Fmain\u002Fsrc\u002FReactor.Advanced\u002FCharting\u002Fskill.md",[82,85],{"categoryNo":83,"categoryName":84,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQGD4CMBM6B4PWSM1NXGT9","数据分析与报告",{"categoryNo":86,"categoryName":87,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5CX980XNXCJKQF70BY","数据分析师",[77],{"skillNo":90,"name":91,"nameZh":92,"description":93,"descriptionZh":94,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":95,"categories":96,"keywords":99,"publishedAt":46},"01M69B92C846XMSNJ4PZGVYY3C","reactor-wrapping","Reactor 控件包装生成","Turn ANY WinUI control — a vendor\u002Fthird-party control, your own custom Control, or a Windows Community Toolkit one — into a first-class declarative Reactor element with the [GenerateReactorWrapper] source generator, zero hand-written wrapper code. Covers auto-inference (props, content, two-way pairs, panel\u002Fitems children, events), the [Wrap*] annotation cheat-sheet, imperative-lifecycle controls, diagnostics, and when to fall back to a hand-written ControlDescriptor.","借助 `[GenerateReactorWrapper]` 源生成器，将任意 WinUI 控件——供应商\u002F第三方控件、自定义 `Control` 或 Windows Community Toolkit 控件——转换为一等公民的声明式 Reactor 元素，无需手写任何包装代码。涵盖自动推断（属性、内容、双向绑定对、面板\u002F条目子元素、事件）、`[Wrap*]` 注解速查表、命令式生命周期控件、诊断，以及何时回退到手写 `ControlDescriptor`。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmicrosoft-ui-reactor\u002Fblob\u002Fmain\u002Fplugins\u002Freactor\u002Fskills\u002Freactor-wrapping\u002FSKILL.md",[97,98],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[100,101,102,103,104,105,106,45,107,108,109,110,111,112,113,114,115,116,117,118,119,120],"reactor wrapping","declarative","with","hand","code","cheat","generator","auto","controls","custom","element","lifecycle","winui","ZeRO","panel","community","back","inference","diagnostics","toolkit","windows",{"skillNo":122,"name":123,"nameZh":124,"description":125,"descriptionZh":126,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":127,"categories":128,"keywords":131,"publishedAt":46},"01M69B90PW92BQ4YNZYTP4SERB","reactor-windowing","Reactor 顶层窗口管理","Reactor top-level windowing cookbook: WindowSpec, OpenWindow, draggable windows, borderless\u002Ftool windows, placement persistence, taskbar visibility, z-order, aspect ratio, SizeToContent, displays, taskbar integration, and owner-window file\u002Ffolder pickers.","Reactor 顶层窗口开发指南：`WindowSpec`、`OpenWindow`、可拖动窗口、无边框\u002F工具窗口、窗口位置持久化、任务栏可见性、z-order 层级、宽高比、`SizeToContent`、多显示器、任务栏集成，以及基于所有者窗口的文件\u002F文件夹选择器。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmicrosoft-ui-reactor\u002Fblob\u002Fmain\u002Fplugins\u002Freactor\u002Fskills\u002Freactor-windowing\u002FSKILL.md",[129,130],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,120,147,148,149],"reactor windowing","progress","persistence","cookbook","integration","folder","command","command palette","top","window","palette","file","restore","open","tool","remember","position","make",{"skillNo":151,"name":152,"nameZh":153,"description":154,"descriptionZh":155,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":156,"categories":157,"keywords":160,"publishedAt":46},"01M69B8Y5Y0VKXADXCN3W1NK89","reactor-recipes","Reactor 即用型代码配方","Paste-ready single-file Reactor recipes indexed by intent — list with add\u002Fdelete\u002Ftoggle, sidebar navigation between pages, form with validation + submit gating, async fetch with loading\u002Ferror\u002Fdata states, themed Win11 card surface. Use a recipe instead of synthesizing from prose: copy, adjust, ship.","按意图索引、可直接粘贴使用的单文件 Reactor 配方——支持增删与切换的列表、页面间侧边栏导航、带校验与提交门控的表单、带加载\u002F错误\u002F数据状态的异步获取、Win11 主题卡片界面。使用现成配方而非根据文字描述自行拼凑：复制、调整、即可交付。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmicrosoft-ui-reactor\u002Fblob\u002Fmain\u002Fplugins\u002Freactor\u002Fskills\u002Freactor-recipes\u002FSKILL.md",[158,159],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[161,162,143,163,102,164,37,165,44,166,32,167,168,169,170,35,171,172,173,174],"reactor recipes","recipes","recipe","form","adjust","pages","card","submit","loading","states","gating","single-file","ready","error",{"skillNo":176,"name":177,"nameZh":178,"description":179,"descriptionZh":180,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":181,"categories":182,"keywords":185,"publishedAt":46},"01M69B8WNYS31M4P012P2QTX6R","reactor-navigation","Reactor 页面导航与路由","Reactor navigation — `UseNavigation` hook, `NavigationHost` renderer, `NavigationView` sidebar, `TabView` tabs, route params, stack operations, page lifecycle, deep linking, transitions, caching. Use when building multi-page apps or wiring sidebar\u002Ftab navigation.","Reactor 导航——`UseNavigation` 钩子、`NavigationHost` 渲染器、`NavigationView` 侧边栏、`TabView` 标签页、路由参数、栈操作、页面生命周期、深链接、转场动画、缓存。适用于构建多页面应用或接入侧边栏\u002F标签页导航时。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmicrosoft-ui-reactor\u002Fblob\u002Fmain\u002Fplugins\u002Freactor\u002Fskills\u002Freactor-navigation\u002FSKILL.md",[183,184],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[186,187,41,45,188,37,111,189,190,191,192,193,194,195,196,197,198,199,200],"navigation","reactor navigation","apps","renderer","multi-page","page","deep","wiring","hook","operations","transitions","linking","stack","route","multi",{"skillNo":202,"name":203,"nameZh":204,"description":205,"descriptionZh":206,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":207,"categories":208,"keywords":211,"publishedAt":46},"01M69B8TGJA43N8X6BFVWTXC1H","reactor-input","Reactor 输入交互处理","Reactor input — gestures (`OnPan`, `OnPinch`, `OnRotate`), pointer events, drag-and-drop (`OnDragStarting`), focus management (`UseElementFocus`, `UseFocus`, `UseFocusTrap`). Use when implementing direct manipulation or custom focus behavior.","Reactor 输入处理——手势（`OnPan`、`OnPinch`、`OnRotate`）、指针事件、拖放（`OnDragStarting`）、焦点管理（`UseElementFocus`、`UseFocus`、`UseFocusTrap`）。在实现直接操作交互或自定义焦点行为时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmicrosoft-ui-reactor\u002Fblob\u002Fmain\u002Fplugins\u002Freactor\u002Fskills\u002Freactor-input\u002FSKILL.md",[209,210],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[212,213,214,215,216,217,218,219,45,37,109,220,221,222],"input","reactor input","direct","events","management","behavior","focus","drop","implementing","drag","gestures"]