Two consecutive `subscribe` calls on the Observable created by `authState()` cause Angular app to never become stable.
- Lenguaje dominante
- TypeScript
- Estrellas
- 7.8k
- Forks
- 2.2k
- Merge medio
- 22 h 28 min
- PR fusionados (30 d)
- 6
Descripción
### Version info
**Angular:** 18.0.3
**Firebase:** 10.12.2
**AngularFire:** 18.0.1
### How to reproduce these conditions
**Failing test unit, Stackblitz demonstrating the problem**
Stackblitz example with the problem: https://stackblitz.com/edit/stackblitz-starters-zfidzt?file=src%2Fmain.ts
**Steps to set up and reproduce**
- Open Stackblitz reproduction
- Check the console, and see that the `ApplicationRef.isStable` never emits true
### Debug output
**Errors in the JavaScript console**
message: `isStable: true` is expected, but it never comes

### Expected behavior
`ApplicationRef.isStable` emits `true` after application start.
### Actual behavior
`ApplicationRef.isStable` never emits `true`, if two consecutive `subscribe` calls on the Observable created by `authState()` are made.
Guía de contribución
Línea de trabajo
Comienza con la reproducción enlazada de StackBlitz, especialmente con src/main.ts, y reproduce las dos llamadas consecutivas a subscribe sobre authState(). Observa ApplicationRef.isStable y compara el resultado con la emisión true esperada después del inicio de la aplicación; se considera terminado cuando la aplicación se vuelve estable en esta reproducción.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- angular, firebase, typescript
- Área
- authentication, frontend
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100