MongoDB.live, free & fully virtual. June 9th - 10th. Register Now MongoDB.live, free & fully virtual. June 9th - 10th. Register Now

Promises are not resolved inside change listeners callbacks until tapping the screen

Hello,

It’s more than a year that I have this problem, could anyone please help to solve it? It’s very annoying to have to write something like “Tap the screen if it stuck” in the first view of my app.

We have the exact same problem :frowning:

I’ve talked with the team from Realm. They say this kind of issues depends from something that is not easy to change in how realm J’s works, so their advice is to use a setTimeout as workaround.

In my example you should write it (in my case with 30ms of delay) after

resolve()

2 Likes

Oh I see. Thank you for providing a workaround :+1:. Will try that out. Cheers.

1 Like