Hi I have an application which allows user to delete their account after they login in and went to the profile page. My application uses a viewModel to access the user details, the key concept is everytime the user login, the userViewModel will store the user object into a published variable, and that published variable is accessed every view in the application.
The problem is when user delete his account, the published user variable suddenlly becomes null and every view cannot access and caused a app crash. Is there anyway I can restart the application, enforce user back to login page without caching the other views or reload the application.
Thanks in advance.