User data not reloading after auth state changes
peterfriese opened this issue · comments
When a user signs in (or out), the task data in the main task list doesn't refresh.
This is a regression introduced in a local branch. Instead of re-creating the snapshot listener, we continue using the old one (with the previous auth state).
The previously used code did a better job:
if listenerRegistration != nil {
listenerRegistration?.remove()
}
listenerRegistration = db.collection(tasksPath)
// ...