[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EKJMCXRZ4F5MJGFM708R2E":3,"skill-same:01M6EKJMCXRZ4F5MJGFM708R2E":60},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":26,"linkOnly":27,"markdownContent":28,"markdownBody":29,"frontMatter":30,"refName":31,"commitSha":32,"skillDirectory":33,"forksCount":34,"repositoryHtmlUrl":35,"repositoryHomepageUrl":36,"ownerHtmlUrl":37,"ownerBlogUrl":6,"ownerDescription":38,"updatedAt":39,"install":40,"resources":53},"01M6EKJMCXRZ4F5MJGFM708R2E","render-info",null,"Using the RendererInfo class in Blazor to detect rendering context and interactivity.","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fandrehogberg\u002Frender-info\u002FSKILL.md",[],[19,20,21,22,23,24,25],"info","render","render info","blazor","context","detect","rendering","2026-11-10 10:12:30",false,"---\nname: render-info\ndescription: Using the RendererInfo class in Blazor to detect rendering context and interactivity.\n---\n\n# Using RendererInfo in Blazor\n\nThe `RendererInfo` class in Blazor provides runtime information about the renderer that is executing the component. It is particularly useful for detecting whether a component is running interactively or statically, and for identifying the specific rendering platform (e.g., Server, WebAssembly, WebView).\n\n## Key Properties\n\n### `IsInteractive`\n- **Type:** `bool`\n- **Description:** Indicates whether the component is currently running in an interactive render mode.\n- **Usage:** Use this to conditionally render UI elements that require interactivity, such as disabling buttons or showing loading indicators during static server-side rendering (SSR) or prerendering.\n\n```csharp\n@if (!RendererInfo.IsInteractive)\n{\n    \u003Cp>Connecting...\u003C\u002Fp>\n}\nelse\n{\n    \u003Cbutton @onclick=\"HandleClick\">Click Me\u003C\u002Fbutton>\n}\n```\n\n### `Name`\n- **Type:** `string`\n- **Description:** Returns the name of the renderer.\n- **Common Values:**\n  - `\"Static\"`: Running in static server-side rendering (SSR).\n  - `\"Server\"`: Running in Interactive Server mode (SignalR).\n  - `\"WebAssembly\"`: Running in Interactive WebAssembly mode.\n  - `\"WebView\"`: Running in a Blazor Hybrid application (MAUI, WPF, WinForms).\n\n```csharp\n\u003Cp>Current Render Mode: @RendererInfo.Name\u003C\u002Fp>\n```\n\n## Common Scenarios\n\n### 1. Disabling Inputs During Prerendering\nWhen a component is prerendered on the server, event handlers (like `@onclick`) are not active. You can use `RendererInfo.IsInteractive` to disable inputs until the interactive runtime takes over.\n\n```razor\n\u003Cbutton @onclick=\"Submit\" disabled=\"@(!RendererInfo.IsInteractive)\">\n    Submit\n\u003C\u002Fbutton>\n```\n\n### 2. Rendering Different Content for Static vs. Interactive\nYou might want to show a simple HTML form for static SSR and a rich, interactive component for interactive modes.\n\n```razor\n@if (RendererInfo.Name == \"Static\")\n{\n    \u003Cform action=\"\u002Fsearch\" method=\"get\">\n        \u003Cinput name=\"q\" \u002F>\n        \u003Cbutton type=\"submit\">Search\u003C\u002Fbutton>\n    \u003C\u002Fform>\n}\nelse\n{\n    \u003CSearchComponent \u002F>\n}\n```\n\n## Related Concepts\n- **`AssignedRenderMode`**: A property on `ComponentBase` that tells you which render mode was assigned to the component (e.g., `InteractiveServer`, `InteractiveWebAssembly`, `InteractiveAuto`). Note that `AssignedRenderMode` might be `null` during static rendering.\n\n## Important Notes\n- `RendererInfo` is available in .NET 8.0 and later.\n- It is a static class, so you can access it directly in your Razor markup or C# code without injection.\n","# Using RendererInfo in Blazor\n\nThe `RendererInfo` class in Blazor provides runtime information about the renderer that is executing the component. It is particularly useful for detecting whether a component is running interactively or statically, and for identifying the specific rendering platform (e.g., Server, WebAssembly, WebView).\n\n## Key Properties\n\n### `IsInteractive`\n- **Type:** `bool`\n- **Description:** Indicates whether the component is currently running in an interactive render mode.\n- **Usage:** Use this to conditionally render UI elements that require interactivity, such as disabling buttons or showing loading indicators during static server-side rendering (SSR) or prerendering.\n\n```csharp\n@if (!RendererInfo.IsInteractive)\n{\n    \u003Cp>Connecting...\u003C\u002Fp>\n}\nelse\n{\n    \u003Cbutton @onclick=\"HandleClick\">Click Me\u003C\u002Fbutton>\n}\n```\n\n### `Name`\n- **Type:** `string`\n- **Description:** Returns the name of the renderer.\n- **Common Values:**\n  - `\"Static\"`: Running in static server-side rendering (SSR).\n  - `\"Server\"`: Running in Interactive Server mode (SignalR).\n  - `\"WebAssembly\"`: Running in Interactive WebAssembly mode.\n  - `\"WebView\"`: Running in a Blazor Hybrid application (MAUI, WPF, WinForms).\n\n```csharp\n\u003Cp>Current Render Mode: @RendererInfo.Name\u003C\u002Fp>\n```\n\n## Common Scenarios\n\n### 1. Disabling Inputs During Prerendering\nWhen a component is prerendered on the server, event handlers (like `@onclick`) are not active. You can use `RendererInfo.IsInteractive` to disable inputs until the interactive runtime takes over.\n\n```razor\n\u003Cbutton @onclick=\"Submit\" disabled=\"@(!RendererInfo.IsInteractive)\">\n    Submit\n\u003C\u002Fbutton>\n```\n\n### 2. Rendering Different Content for Static vs. Interactive\nYou might want to show a simple HTML form for static SSR and a rich, interactive component for interactive modes.\n\n```razor\n@if (RendererInfo.Name == \"Static\")\n{\n    \u003Cform action=\"\u002Fsearch\" method=\"get\">\n        \u003Cinput name=\"q\" \u002F>\n        \u003Cbutton type=\"submit\">Search\u003C\u002Fbutton>\n    \u003C\u002Fform>\n}\nelse\n{\n    \u003CSearchComponent \u002F>\n}\n```\n\n## Related Concepts\n- **`AssignedRenderMode`**: A property on `ComponentBase` that tells you which render mode was assigned to the component (e.g., `InteractiveServer`, `InteractiveWebAssembly`, `InteractiveAuto`). Note that `AssignedRenderMode` might be `null` during static rendering.\n\n## Important Notes\n- `RendererInfo` is available in .NET 8.0 and later.\n- It is a static class, so you can access it directly in your Razor markup or C# code without injection.\n",{"name":5,"description":7},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Faiskillstore\u002Fmarketplace\u002Fandrehogberg\u002Frender-info",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill render-info",{"tool":46,"command":47},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill render-info",{"tool":49,"command":50},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill render-info","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fandrehogberg\u002Frender-info\u002FSKILL.md",true,[54],{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"skill-report.json","REFERENCE","参考文档",11903,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fandrehogberg\u002Frender-info\u002Fskill-report.json",[61,70,79,88,94,100],{"skillNo":62,"name":63,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":26},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[67,68,69],"model","model hierarchy","model hierarchy skill",{"skillNo":71,"name":72,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":26},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[76,77,78],"MCP","zoom","zoom mcp",{"skillNo":80,"name":81,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":26},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[85,86,87,77],"sdk","zoom apps sdk","apps",{"skillNo":89,"name":90,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":26},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[90],{"skillNo":95,"name":96,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":26},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[96],{"skillNo":101,"name":102,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":26},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[102]]