Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Thank you for your input. Had a read about the Blazor lifecycle, and in my case I don't need to know that early in the lifecycle, so OnParametersSetAsync is probably just as good. I was hoping there was a totally different way to do this, but there probably isn't(?) Commented Jun 17, 2020 at 12:34
  • NB: With SetParametersAsync I don't need the extra _previousInput variable, so it was helpful :-) Commented Jun 17, 2020 at 12:45
  • I feel it's worth mentioning that if your parameters are coming from a parent page or component, and you have multiple parameters, multiple parameters will be provided in your ParameterView object, even ones that don't change. In addition, in this overwritten function at the point where you see that there's a difference between the new parameter and the one coming in, the value hasn't yet changed and so executing a function here off of a difference will be running based on non changed values. Commented Oct 19, 2023 at 19:35