Skip to content

How to detect Pre-Rendering of a Component #53563

Answered by javiercn
ShaunCurtis asked this question in Q&A
Discussion options

You must be logged in to vote

[CascadingParameter] HttpContext HttpContext {get; set; } on your component. If you are prerendering it will be populated, in any other case it will be null.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@ShaunCurtis
Comment options

Comment options

You must be logged in to vote
1 reply
@ShaunCurtis
Comment options

Answer selected by ShaunCurtis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area-blazor Includes: Blazor, Razor Components
3 participants