diff --git a/lib/extensions.js b/lib/extensions.js index 9b1757da..467e3347 100644 --- a/lib/extensions.js +++ b/lib/extensions.js @@ -76,7 +76,7 @@ module.exports = function(realmConstructor) { else { try { let syncedRealm = new realmConstructor(config); - resolve(syncedRealm); + setTimeout(() => { resolve(syncedRealm); }, 1); } catch (e) { reject(e); }