neozhu/CleanArchitectureWithBlazorServer

Pull to refresh

marjanoh2 opened this issue · 2 comments

During pull to refresh whole page reloads and shows notifications for user log in/ log out. Is there a better and more smooth way for this situation?
https://drive.google.com/file/d/1NHvR4KOYynsKsjErPj6aBwBPvVfVAaYR/view?usp=drivesdk

Something similar to this:
https://drive.google.com/file/d/1NHX_-kVFmxM_3kvosCTOa3NDF_j5h399/view?usp=drivesdk

The issue you have is that doing a hard refresh on a blazor application creates a new circuit, and this is what triggers the "login" notification.

Personally I'd just remove the notification all together, can always add a component that shows user login state (as happens in the users admin page) for users who are interested in seeing who else is online.

I have refactoring code for this