angular / angular/angularfire

Two consecutive `subscribe` calls on the Observable created by `authState()` cause Angular app to never become stable.

Abierto
#3,548 0 comentarios 2 reacciones 0 asignados Ver en GitHub
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
![angular-fire-stability-example](https://github.com/angular/angularfire/assets/72603663/0672130f-9efe-4ff9-9c0c-923772eeab30)

### 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

Abrir la 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

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.