Invoke StateHasChanged() only after asynchronous operation has completed
Referring to the code below:
My intent is to refresh the page after updating the database, in order to display the updated information. Based on the behaviour I am seeing, it looks as if
My intent is to refresh the page after updating the database, in order to display the updated information. Based on the behaviour I am seeing, it looks as if
StateHasChanged() is invoked before the database is updated with await DrawService.ActivateDraw(DrawId). What would be the correct way to refresh the page only after the await is complete?