-
Notifications
You must be signed in to change notification settings - Fork 25.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blazor project tracking 2022 #24615
Comments
Is it yet possible to compile a WASM Blazor app using AOT into pure .wasm files, with no .dll or .bin downloads? If so, is it possible to split these .wasm files into chunks much like a JS SPA app would be? I'd like Blazor to get to a stage where my app is served in several chunks (each a .wasm file with DLL code obfuscated enough to get past firewalls), where you have the chunks split up intelligently for optimal caching. For instance, one chunk could just contain commonly-used DLL code that is likely not to change, such as System.Collections.Generic. Another could contain other .NET framework dependencies for the app. Another could contain Nuget package dependencies, and another could contain the remaining app code (most likely to need regular updates). |
@jez9999 ... That discussion is taking place on dotnet/aspnetcore#36978. The multipart bundle guidance that we have is at ... https://learn.microsoft.com/aspnet/core/blazor/host-and-deploy/webassembly-deployment-layout |
2022
For the 2021 idea list, UE pass list, and notes, see Blazor project tracking 2021 (dotnet/AspNetCore.Docs #19286).
Doc ideas
Not ALL of these will be worked. This is an idea list/check list that don't rise to the level of opening an issue at this time.
MutationObserver
pattern where its discussed.<span aria-hidden="true">XXXXX</span><span class="visually-hidden">XXXXX</span>
FileSystem
API use in Blazor apps?testassets
pieces in the framework to see what might be helpful for devs to see in docs. It's a large task tho because there's so much there. This probably can't be worked in 23H1, possibly for 23Q3 tho.QuickGrid
example that opens and closes a detail record component without losing the page and scroll position of the grid. For context, see Blazor database example's list page is reloaded when coming back from a details page blazor-samples#58.http://useiconic.com
. Templates link update to http://useiconic.com blazor-samples#51 PR: Update samples for MIA async modifier and template changes blazor-samples#52async
modifier. Update JS interop example code blazor-samples#50 PR: Update samples for MIA async modifier and template changes blazor-samples#52NavigationManager
asNavigationManager
. However, the PU favorsNavigation
in their examples. BTW, the glob-loc topic usesNav
. Consider making this consistent onNavigation
everywhere, including in the snippet sample apps (and other sample apps). Update Navigation Manager naming #27153<head>
content in the Performance doc. Lazy-loading CSS files #26994 REJECTED because the lazy-loading scenario that would be effective is an advanced scenario that most apps probably won't benefit from very much.dotnet/blazor-samples
repo (renameListItem
toListItem1
, place the newListItem2
). I scribbled a note to deleteShared/ListItem.razor
and to killPages/dependency-injection/Preferences.razor
. Backport JS interop section #27517/p:RuntimeIdentifier={RID}
but the self-contained setting doesn't (/p:SelfContained=false
).Program.cs
to the Logging topic. WASM logging in Program.cs #26449<xref:blazor/js-interop/index#location-of-javascript>
. Cross-link JS location guidance #26166dotnet/blazor-samples
repo and cross-link code to the dedicated repo. Kill 🔪 the samps in the main doc set repo. Drop Blazor-SignalR 6.0 samp and cross-link #26117RouteView
on Add RouteView component #26100. Opened Cover SectionOutlet/SectionContent? #26099 to ask aboutSectionOutlet
/SectionContent
, but closed it immediately when Mackinnon informed me that they're internal, which I missed because I didn't read the bleed'in code! 🙈😄 I need a vacation! 🏖️dotnet/blazor-samples
repo sample apps.:::code language="csharp" source="~/../blazor-samples/6.0/BlazorSample_Server/ExampleModel.cs" highlight="6":::
https://github.com/dotnet/AspNetCore.Docs/raw/main/aspnetcore/blazor/samples/6.0/BlazorServerDbContextExample.zip
Cross-ref: Updates to use the dotnet/blazor-samples repo #24883 UPDATE: Moved to the dedicated issue at Blazor cross-repo code sample links #26074. Resolved by: Blazor cross-repo code sample links #26087RenderFragment
for defining reusable, non-component rendering code in the components topic. It's currently a bit buried in the perf topic. Other docs can cross-link to it for a definition ofRenderFragment
with an example. Cross-links to and from this section make sense to index the various uses and examples. Besides, the child component section is the first mention of it, and it's not particularly well described at the moment in a general way there. This could be part of any updates for Is using __builder in the examples a good idea? #25822. NOTE: Search out cross-links to re-point. There's one coming up in the Hybrid 'reuse components' topic. Render fragment content organization and cross-links #26017IJSInProcessRuntime
(3.1 or later)/IJSInProcessObjectReference
(5.0 or later). Sync JS interop updates #26101diff
code blocks, most have a space between the+
/-
and the line. A few don't ... bring those into alignment with a space. Blazor diff code fixups #25983Program.cs
, but I'm going to add a nibblet on that shortly).dotnet/blazor-samples
repo and link to it there. Note to self: It's on theI:
drive! 😄 Blazor WASM logging coverage enhancements #25705 (comment) UPDATE: Checking this off here because it's going to be tracked by its own issue at: Place log scopes sample into the Blazor samps repo #25982@using
directives in components, so I'll table that aspect for a future VS release that can help identify them.ReferenceParent3
example from the docs sample repo. Drop example blazor-samples#7no-loc
metadata. Blazor Hybrid dev tools topic #25384 (comment) Blazor no-loc adds #25429[!INCLUDE[](~/includes/package-reference.md)]
. Improve add package ref guidance #25260HeadContent
component that adds a global stylesheet from an RCL. It works, but it isn't recommended. It's an advanced scenario that devs can use at their own risk. Update guidance on global RCL stylesheet use #25161[Inject]
is described: Injected properties are expected to be available, so make them non-nullable. Added IServiceProvider to DataAnnotationsValidator aspnetcore#39445 (comment) Injected properties are expected to be available #24685Debug
resulted in a 9.3 MB app without relevant console compiler output. Publishing inRelease
resulted in a 6.6 MB app with console compiler output that indicated runtime relinking.Server
project. The errors for not doing so can be quite cryptic 😵. For example, the File Uploads topic example throws a "JSON token" error when the solution is run from the client app. It's not at all clear that it was simply run from the wrong project.Related: I add aThe last piece was fixed as part of Update Blazor code guidance #24548 prompted by a user issue. The first bit is fixed by Fix confusing language #24665.HeadOutlet
component to the layout at Line 212 for the scenario of an RP/MVC app that embeds components from a hosted WASM app (render-mode="ServerPrerendered"
) to allow components to control head content. Due to time constraints at the moment, the coverage is going in. When I address this item and touch that line ☝️ also run a quick test and confirm the scenario for Line 212 actually works ... or did I just make up a new Blazor feature all by myself?! 🙈😄InputFile
component preview guidance (6.0) is in the new Blazor Images topic and probably should be better cross-linked (Blazor Wasm InputFile Preview Content Faster #23802). InputFile image preview INCLUDE #24666Action
delegates, I whipped up a (contrived) example on Example update #23566 (comment). It's not particularly complicated to enhance the example that appears in the Perf topic. I'm going to merely leave the test case on that PR comment for the time being.this
keyword, resolve Blazor common sample enhancements #14216, etc.), and any other prelim remarks before the reader gets into the meat of the coverage. Blazor docs need to be streamlined #22230 (comment) Add Blazor Fundamentals node overview #24880InteropComponent.razor
,jsinteroptests.js
, andGenericType<TValue>
Issue: Blazor JS interop with generic methods #25450 PR: Blazor JS interop with generic methods #25465Microsoft.JSInterop.ts
UPDATE: Let's hold with what we have for additional community feedback and/or PU guidance on any missing scenarios, probably edge scenarios tho given that the most common scenarios should be covered now with the addition of the prior two bullet points.dotnet/blazor-samples
repo.UE pass tracking
Only includes topics that weren't reached in '21 or new topics added in '21.
App
component example INCLUDE(s) to cover 6.0 churn. See: Missing code which is generated from project template #23696. Work Add an AAD scenario: authorized client apps for APIs #25026 in this node. There are general remarks and some specific items for AAD/AAD B2C andUserManager
/SignInManager
at Confusing instructions, Code example cause internal Server error #27279.[Authorize]
attribute applied with@attribute
(or in code) to a component that it automatically handles tossing an unauthenticated user to the IdP for sign in. It requires considerably less markup/code to implement than an<AuthorizeView>
for the mere purpose of including a customRedirectToLogin
component in the project for the<NotAuthorized>
render fragment.HttpResponseMessage
" language in the API doc, per discussion at Confusing AuthorizationMessageHandler remark #26739 (and respond back on that issue with the final answer from the PU).tasks.json
/launch.json
due to Errors when running .net generate assets to build .vscode folder vscode-csharp#4542. See 👉 small clarification #23777TestServer
). Missing example on how to use TestServer with ASP.NET 6 #25263NavigationManager.NavigateTo
. See :point-right: Use relative path in NavigateTo #22146 (comment).web.config
post PR Remove .wasm file extension before redefining it #24950 and in light of discussion on https://stackoverflow.com/a/69888016 and https://stackoverflow.com/a/70967738. Probably add a tagged SO filter link:https://stackoverflow.com/questions/tagged/blazor+iis+compression
SEPARATE WORK ITEM FOR SECURITY NODE
UE pass tracking ('23)
New topics added in '22 (or earlier) that haven't had the 🦖 Rex Treatment™ 🦖 (or at least haven't had it for quite a long time ... years) ...
The text was updated successfully, but these errors were encountered: