0249722a02
There's no reason for `_waitForDownload` to be responsible for constructing a new Realm instance when we can instead use the constructor for that. This eliminates the potential for different handling of the Realm configuration between `_waitForDownload` and `new Realm`, which was responsible for various issues (#1391, #1392, #1393). In turn, this requires that `_waitForDownload` become an instance method. In addition, we update `Realm.openAsync` and `getSpecialPurposeRealm` to delegate to `Realm.open` rather than reimplementing equivalent logic themselves. Finally, the private mechanism for registering a download progress handler as part of the sync configuration (`_onDownloadProgress`) is removed in favor of the public API (`progress()` on the promise returned by `Realm.open`). |
||
---|---|---|
.. | ||
browser | ||
.eslintrc.json | ||
.npmignore | ||
collection-methods.js | ||
errors.js | ||
extensions.js | ||
index.d.ts | ||
index.js | ||
management-schema.js | ||
permission-api.js | ||
submit-analytics.js | ||
user-methods.js |