Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#3,815 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 3 ngày

@armando-navarro đang làm issue này rồi.

Từ ngày 24/10/2026.

  • #3817 của @armando-navarro — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
25/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
angular, typescript
Lĩnh vực
documentation, frontend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
7.8k
Fork
2.2k
Merge trung bình
2 ngày 7 giờ
Pull request đã merge (30 ngày)
18

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của angular/angularfire

Tất cả issue của angular/angularfire

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.