mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-07 09:27:42 +08:00
Fixes #2455
This commit is contained in:
@@ -49,7 +49,8 @@ RCT_EXPORT_MODULE();
|
||||
}
|
||||
|
||||
- (void)invalidate {
|
||||
for (NSString *key in queryDictionary) {
|
||||
NSArray *queryKeys = [queryDictionary allKeys];
|
||||
for (NSString *key in queryKeys) {
|
||||
RNFBDatabaseQuery *query = queryDictionary[key];
|
||||
[query removeAllEventListeners];
|
||||
[queryDictionary removeObjectForKey:key];
|
||||
|
||||
Reference in New Issue
Block a user