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
Subsequently, if you create a bUnit test to exercise the FetchDataController, View is always(almost-timing) null in OnInitializedAsync.
I am guessing that the issue here is that the View does not get set until BuildRenderTree runs which happens after the OnInitialized/async calls are made. This also means the OnViewInitialized is called before the OnInitializedAsync completes.
Curious to see what the solution is for the situation.
The text was updated successfully, but these errors were encountered:
blazormvc/Sample.WebAssemblyNet6/Pages/FetchDataController.cs
Line 21 in 6226bb7
If you change line 21 to bypass having to have a local variable for _forecasts to the following:
Then View is null and the page blows up.
Subsequently, if you create a bUnit test to exercise the FetchDataController, View is always(almost-timing) null in OnInitializedAsync.
I am guessing that the issue here is that the View does not get set until BuildRenderTree runs which happens after the OnInitialized/async calls are made. This also means the OnViewInitialized is called before the OnInitializedAsync completes.
Curious to see what the solution is for the situation.
The text was updated successfully, but these errors were encountered: