Added to the support library for React Native debugging (#479) (#2005)

This commit is contained in:
Kenneth Geisshirt 2018-09-04 10:58:03 +02:00 committed by GitHub
parent 760ddd578f
commit c6753efe5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -17,6 +17,7 @@ Server and open synchronized Realms (#1276).
### Bug fixes
* Removed a false negative warning when using `User.createConfiguration`.
* Fixed the type definition for `User.authenticate`.
* Added `Realm.Sync.Subscription.removeAllListeners()` to the `Subscription` proxy class used when debugging a React Native app (#479).
* Fixed the type definitions for `Session.addConnectionNotification` and `Session.removeConnectionNotification`
### Internal

View File

@ -34,12 +34,13 @@ Object.defineProperties(Subscription.prototype, {
createMethods(Subscription.prototype, objectTypes.SUBSCRIPTION, [
'unsubscribe',
'addListener',
'removeListener'
'removeListener',
'removeAllListeners'
]);
export function createSubscription(realmId, info) {
let subscription = Object.create(Subscription.prototype);
subscription[keys.realm] = "(Subscription object)";
subscription[keys.id] = info.id;
subscription[keys.type] = objectTypes.SUBSCRIPTION;