Skip to content

Commit 2546971

Browse files
authored
fix(database,web): fix an issue that would remove duplicate streams in Debug mode (#13253)
1 parent c70d498 commit 2546971

File tree

1 file changed

+2
-2
lines changed
  • packages/firebase_database/firebase_database_web/lib/src

1 file changed

+2
-2
lines changed

packages/firebase_database/firebase_database_web/lib/src/query_web.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
part of '../firebase_database_web.dart';
66

7+
final Map<String, int> _streamHashCodeMap = {};
8+
79
/// An implementation of [QueryPlatform] which proxies calls to js objects
810
class QueryWeb extends QueryPlatform {
911
final DatabasePlatform _database;
@@ -64,8 +66,6 @@ class QueryWeb extends QueryPlatform {
6466
return instance;
6567
}
6668

67-
final Map<String, int> _streamHashCodeMap = {};
68-
6969
@override
7070
String get path {
7171
final refPath = Uri.parse(_queryDelegate.ref.toString()).path;

0 commit comments

Comments
 (0)