Closed kjdamen closed 2 years ago
You'll need to typecast it.
What are you trying to achieve?
In the tutorial of the link below you will see a similar code in the component TodoDetail.razor.
state-management-with-blazor-using-fluxor-part-2
In the OnInitialized function the TodosState.StateChanged does not work anymore since version 5.0. State here is of type eventargs and it is not possible to typecast.
The blog is now outdated. The correct way to obtain the new state is to inject IState<T>
and read it from there.
Hi,
In release 5.0 the following has changed:
In my OnInitializedAsync I have included the following code.
Here I can no longer read the SelectedProduct property from state. How can I apply this code in the 5.0 release?
Regards, Kevin