Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ddereszkiewicz opened this issue Jun 14, 2024 · 0 comments

Comments

@ddereszkiewicz
Copy link

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

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant