Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

CascadingParameter and OnParametersSet

$
0
0

I have a simple question I can't find a clear answer to.

Currently, since I have a user 'state' model, I use Cascading Parameters to my child components and update them when the state model requires it using something like this:

private async void OnClientStateChanged(object? sender, PropertyChangedEventArgs e){    if (e.PropertyName == "propertyChanged" && sender is ClientState state)    {        _needsReselect = true;        await InitScreen();    }}

I would rather use an OnParametersSet method that gets called when the cascading parameter of my user state is modified so my question is:

Question: Does a change to a Cascading Parameter fire the OnParametersSet event? In my testing I can not get it to do so.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>