This commit is contained in:
ehesp
2019-08-07 12:03:53 +01:00
parent dfe95ba072
commit 14c3943e13

View File

@@ -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];