Skip to content

Commit 176eba8

Browse files
fix(firebase): document rtdb universal methods
1 parent ff62d20 commit 176eba8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/modules/firebase/browser.firebase.rtdb.service.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { sha1 } from 'object-hash'
1919
@Injectable()
2020
export class UniversalRtDbService implements IUniversalRtdbService {
2121
// tslint:disable-next-line:readonly-keyword
22-
readFromCache = true
22+
private readFromCache = true
2323

2424
constructor(
2525
public angularFireDatabase: AngularFireDatabase,
@@ -40,6 +40,9 @@ export class UniversalRtDbService implements IUniversalRtdbService {
4040
this.readFromCache = false
4141
}
4242

43+
/*
44+
* Safely query a Firebase RTDB object on both server and client
45+
*/
4346
universalObject<T>(path: string): Observable<T | undefined> {
4447
const cached = this.ts.get<T | undefined>(this.cacheKey(path), undefined)
4548
const base = this.angularFireDatabase
@@ -58,6 +61,9 @@ export class UniversalRtDbService implements IUniversalRtdbService {
5861
)
5962
}
6063

64+
/*
65+
* Safely query a Firebase RTDB list on both server and client
66+
*/
6167
universalList<T>(
6268
path: string,
6369
queryFn?: QueryFn

0 commit comments

Comments
 (0)