SergeyDavidovich / OMSBlazor

Real-time Order Management System
https://stupeni.net
MIT License
1 stars 1 forks source link

Is process of "starting" viewmodel well designed? #28

Open BekAllaev opened 3 months ago

BekAllaev commented 3 months ago

Now when we navigate to some view that have viewmodel, in OnInitializedAsync method of the view in code-behind we call OnNavigatedTo method of the viewmodel so viewmodel can do all its initiall jobs(fill collection, calculate some properties, etc). I am not sure if it is good approach. Should be discussed!

Maybe process of starting viewmodel should be trigered without our code?!