You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Clean up the provisional mapping to avoid retaining unused subscribers.
1065
+
cache.addNullishStorageKey(mapping.key);
1066
+
deletecallbackToStateMapping[subscriptionID];
1067
+
returnsubscriptionID;
1068
+
}
1069
+
}
1070
+
}catch(e){
1071
+
// Not a collection member key, proceed as usual.
1072
+
}
1073
+
1056
1074
// When keyChanged is called, a key is passed and the method looks through all the Subscribers in callbackToStateMapping for the matching key to get the subscriptionID
1057
1075
// to avoid having to loop through all the Subscribers all the time (even when just one connection belongs to one key),
1058
1076
// We create a mapping from key to lists of subscriptionIDs to access the specific list of subscriptionIDs.
@@ -1659,6 +1677,13 @@ function logKeyRemoved(onyxMethod: Extract<OnyxMethod, 'set' | 'merge'>, key: On
1659
1677
Logger.logInfo(`${onyxMethod} called for key: ${key} => null passed, so key was removed`);
1660
1678
}
1661
1679
1680
+
/**
1681
+
* Getter - returns the callback to state mapping, useful in test environments.
0 commit comments