react-native-onyx 2.0.66 → 2.0.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -162,8 +162,13 @@ class OnyxConnectionManager {
|
|
|
162
162
|
* */
|
|
163
163
|
addToEvictionBlockList(connection) {
|
|
164
164
|
var _a;
|
|
165
|
-
|
|
165
|
+
if (!connection) {
|
|
166
|
+
Logger.logInfo(`[ConnectionManager] Attempted to add connection to eviction block list passing an undefined connection object.`);
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
const connectionMetadata = this.connectionsMap.get(connection.id);
|
|
166
170
|
if (!connectionMetadata) {
|
|
171
|
+
Logger.logInfo(`[ConnectionManager] Attempted to add connection to eviction block list but no connection was found.`);
|
|
167
172
|
return;
|
|
168
173
|
}
|
|
169
174
|
const evictionBlocklist = OnyxUtils_1.default.getEvictionBlocklist();
|
|
@@ -178,8 +183,13 @@ class OnyxConnectionManager {
|
|
|
178
183
|
*/
|
|
179
184
|
removeFromEvictionBlockList(connection) {
|
|
180
185
|
var _a, _b, _c;
|
|
181
|
-
|
|
186
|
+
if (!connection) {
|
|
187
|
+
Logger.logInfo(`[ConnectionManager] Attempted to remove connection from eviction block list passing an undefined connection object.`);
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
const connectionMetadata = this.connectionsMap.get(connection.id);
|
|
182
191
|
if (!connectionMetadata) {
|
|
192
|
+
Logger.logInfo(`[ConnectionManager] Attempted to remove connection from eviction block list but no connection was found.`);
|
|
183
193
|
return;
|
|
184
194
|
}
|
|
185
195
|
const evictionBlocklist = OnyxUtils_1.default.getEvictionBlocklist();
|