In my angular app, I use AngularFire
to access firebase realtime database.
I have following method to retrieve entities in a certain database path.
private db: AngularFireDatabase;
public getAll(): Observable<Item[]> {
return this.db.list<Item>('some/db/path').valueChanges();
}
If I call above method multiple times, does the data get downloaded multiple times from server, or firebase client uses a local cache second time onward?
If data gets downloaded multiple times, is there any way I can instruct firebase client to use local caching?