✅ OnParametersSetAsync() in a blazor component being called before clicking a button in Blazor app
I created a component in Blazor, a
CourseList
which has a Parameter of TermId
its added to the Terms.razor
page as such
termId
is a Guid
that is only being assigned a value when one of the buttons next to the rendered terms is clicked.
The CourseList
component itself only displays if a bool showDetails
is set to true. However, when the page is loaded, it automatically displays the table headers and tries to load the list of Courses that are within that if (showDetails)
CourseList.razor:
Why is this OnParameterSetAsync()
being called on page load before clicking a button?1 Reply
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View