Repository navigation
Commit 2ee81c2
committed
fix: update useFirestoreDocData return type to include undefined
docData() from rxfire returns Observable<T | undefined> because a
Firestore document may not exist. The previous ObservableStatus<T>
return type was a lie — callers would get undefined at runtime with
no type-level warning.
Fixes #5771 parent 28c5ce7 commit 2ee81c2
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
0 commit comments