Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

The auth guide and the sample still import `beforeAuthStateChanged` from `firebase/auth`

Fechada
#3,815 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 3 dias

Um pull request relacionado já foi integrado.

  • #3817 de @armando-navarro — integrado

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
25/100
Tipo de issue
Documentação
Clareza
Claramente especificada
Status de atividade
Estagnada
Stack de tecnologia
angular, typescript

Direção de pesquisa

Read docs/auth.md and sample/src/app/auth/auth.component.ts, then check the release versions named in the issue. Update both imports to use @angular/fire/auth and keep the compatibility note for AngularFire 20.1.0 and earlier, plus 21.0.0-rc.0 and rc.1. Done when both files use the new import and the note still identifies those affected releases.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

comp: auth comp: docs type: chore version: current (v17+)

The cookie sync in step 2 of the server-side rendering section of docs/auth.md, and sample/src/app/auth/auth.component.ts, import beforeAuthStateChanged from firebase/auth instead of @angular/fire/auth. That was a workaround for #3748: AngularFire's version kept the app marked as busy until its callback first ran, and the callback only runs when someone signs in or out.

The fix (#3770) shipped in AngularFire 20.1.1 and 21.0.0-rc.2.

So the guide and the sample can import beforeAuthStateChanged from @angular/fire/auth like the rest of the guide. The note should stay for the releases that still have the bug: 20.1.0 and earlier, and 21.0.0-rc.0 and rc.1.

Linguagem predominante
TypeScript
Estrelas
7.8k
Forks
2.2k
Merge médio
3d 36min
PRs com merge (30d)
24

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de angular/angularfire

Todas as issues de angular/angularfire

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.