Skip to content
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

OnAfterRenderAsync does not fire in MainLayout .net 9 #59084

Open
vsfeedback opened this issue Nov 21, 2024 · 3 comments
Open

OnAfterRenderAsync does not fire in MainLayout .net 9 #59084

vsfeedback opened this issue Nov 21, 2024 · 3 comments
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

Comments

@vsfeedback
Copy link

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.

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-blazor Includes: Blazor, Razor Components label Nov 21, 2024
@dotnet-policy-service dotnet-policy-service bot added the Author: Migration Bot 🤖 The issue was created by a issue mover bot. The author may not be the actual author. label Nov 21, 2024
@javiercn javiercn added the Needs: Repro Indicates that the team needs a repro project to continue the investigation on this issue label Nov 21, 2024
@dotnet-policy-service dotnet-policy-service bot added Needs: Author Feedback The author of this issue needs to respond in order for us to continue investigating this issue. Status: No Recent Activity labels Nov 21, 2024
@hakenr
Copy link
Member

hakenr commented Nov 26, 2024

Tip: OnAfterRenderAsync does not fire in static server-side rendering (static SSR) mode (includes prerendering).

@dotnet-policy-service dotnet-policy-service bot added Needs: Attention 👋 This issue needs the attention of a contributor, typically because the OP has provided an update. and removed Needs: Author Feedback The author of this issue needs to respond in order for us to continue investigating this issue. Status: No Recent Activity labels Nov 26, 2024
@javiercn javiercn added Needs: Author Feedback The author of this issue needs to respond in order for us to continue investigating this issue. and removed Needs: Attention 👋 This issue needs the attention of a contributor, typically because the OP has provided an update. labels Nov 26, 2024
Copy link
Contributor

Hi @vsfeedback. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

See our Issue Management Policies for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

3 participants