remove setTimeout to repro issue 1255
This commit is contained in:
parent
2df308ae64
commit
356d295e5f
|
@ -71,13 +71,13 @@ module.exports = function(realmConstructor) {
|
|||
},
|
||||
(error) => {
|
||||
if (error) {
|
||||
setTimeout(() => { reject(error); }, 1);
|
||||
reject(error);
|
||||
}
|
||||
else {
|
||||
try {
|
||||
let syncedRealm = new realmConstructor(config);
|
||||
//FIXME: RN hangs here. Remove when node's makeCallback alternative is implemented
|
||||
setTimeout(() => { resolve(syncedRealm); }, 1);
|
||||
resolve(syncedRealm);
|
||||
} catch (e) {
|
||||
reject(e);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue