You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There i have a StateContainer (my-pilet\State\ShoppingCartState.cs) with Items.
Whenever i add items i call StateHasChanged() in my-pilet\Pages\ShopPage.razor and my-pilet\Components\ShoppingCartIcon.razor but the state does not get updated.
Steps to Reproduce
see mvp
Expected behavior
Component should reload and show new state
Actual behavior
does not reload
Possible Origin / Solution
[Optionally, share your idea to fix the issue]
The text was updated successfully, but these errors were encountered:
The problem is in the event handler. If you disable the first handler (just comment out the one in Shop you'll see everything updates (except the Shop). I'll investigate this.
Bug Report
For more information, see the
CONTRIBUTING
guide.Prerequisites
Environment Details and Version
[Package Version, Blazor Version, OS, Browser,...]
Description
Hy. I've been tracking down a problem in my app and i think i've found the source of the problem now.
I have created this mvp to show the problem:
https://github.com/luckyluggi/-mvp_piral_statehaschanged
There i have a StateContainer (my-pilet\State\ShoppingCartState.cs) with Items.
Whenever i add items i call StateHasChanged() in my-pilet\Pages\ShopPage.razor and my-pilet\Components\ShoppingCartIcon.razor but the state does not get updated.
Steps to Reproduce
see mvp
Expected behavior
Component should reload and show new state
Actual behavior
does not reload
Possible Origin / Solution
[Optionally, share your idea to fix the issue]
The text was updated successfully, but these errors were encountered: