Skip to content

Commit 76930b5

Browse files
committed
Address review feedback
1 parent 0f57dd3 commit 76930b5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.changeset/hip-turtles-travel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
'@firebase/database': patch
33
---
44

5-
RTDB query gets shouldn't send server requests for listened-to data
5+
get()s issued for queries that are being listened to no longer send backend requests.

packages/database/src/core/Repo.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ export class Repo {
319319
* @param query - The query to surface a value for.
320320
*/
321321
getValue(query: Query): Promise<DataSnapshot> {
322+
// Only active queries are cached. There is no persisted cache.
322323
const cached = this.serverSyncTree_.calcCompleteEventCache(query.path);
323324
if (!cached.isEmpty()) {
324325
return Promise.resolve(

0 commit comments

Comments
 (0)