79424471

Date: 2025-02-09 06:13:52
Score: 0.5
Natty:
Report link

I do not have access your entire project, but from your shared code snippet, I would guest:

1. viewModelScope is Cancelled

viewModelScope is tied to the lifecycle of the ViewModel. If the ViewModel is cleared before isUserLoggedIn() finishes executing, all its coroutines get canceled automatically.

2. isUserLoggedIn() is Being Called Multiple Times, Canceling Previous Calls

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Leo N