We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f57dd3 commit 76930b5Copy full SHA for 76930b5
.changeset/hip-turtles-travel.md
@@ -2,4 +2,4 @@
2
'@firebase/database': patch
3
---
4
5
-RTDB query gets shouldn't send server requests for listened-to data
+get()s issued for queries that are being listened to no longer send backend requests.
packages/database/src/core/Repo.ts
@@ -319,6 +319,7 @@ export class Repo {
319
* @param query - The query to surface a value for.
320
*/
321
getValue(query: Query): Promise<DataSnapshot> {
322
+ // Only active queries are cached. There is no persisted cache.
323
const cached = this.serverSyncTree_.calcCompleteEventCache(query.path);
324
if (!cached.isEmpty()) {
325
return Promise.resolve(
0 commit comments