OnAfterRenderAsync does not fire in MainLayout .net 9 #59084
Labels
area-blazor
Includes: Blazor, Razor Components
Author: Migration Bot 🤖
The issue was created by a issue mover bot. The author may not be the actual author.
Needs: Author Feedback
The author of this issue needs to respond in order for us to continue investigating this issue.
Needs: Repro
Indicates that the team needs a repro project to continue the investigation on this issue
Status: No Recent Activity
This issue has been moved from a ticket on Developer Community.
[regression] [worked-in:Version 17.12.0]
.net 9 Not sure why but OnAfterRenderAsync does not fire in MainLayout it did in in .net 8
could this just be an oversight ?
here's my code
protected override async Task OnAfterRenderAsync( bool firstRender )
{
if(firstRender)
{
UserId = await Ss.GetInt("UserId") != 0 ? await Ss.GetInt("UserId") : 0;
UserTypeId = await Ss.GetInt("UserTypeId") != 0 ? await Ss.GetInt("UserTypeId") : 20;
UserTypeName = (UserTypeId == 0 || UserTypeId == 20) ? "Home" : await Ss.GetString("UserTypeName");
}
}
Original Comments
Feedback Bot on 11/13/2024, 06:46 PM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
The text was updated successfully, but these errors were encountered: