Closed joshuapinter closed 7 years ago
Just checking, are you also accessing the Realm in native code with Realm Cocoa? Either way, I'd also like to know what versions of React Native and Realm you're using. Thanks!
Hey @appden. I'm using Realm.js 0.13.2 on React Native master
.
The only thing I can think of after looking a little deeper is that I've got a RealmInit.js
file where I have the schema files and init the Realm database. I then require that in all my pages with:
var Realm = require('./RealmInit');
Again, this only started happening without any real code changes, just upgrading Realm for 0.12.0 to 0.13.2 and React Native from 0.24 to master.
Thanks for your help!
Hello,
Having the same issue here. The issue appears when refreshing in the Ios Simulator
me too
This happens when debugging JS remotely. Simply refresh your google chrome page that has the debugger window open and refresh simulator and all should work as expected.
@EngineerDiab That doesn't fix it.
@joshuapinter Try uninstalling the application from the simulator and rebuilding. Also close anything that could be using the .realm file such as realm browser.
@EngineerDiab You're right about the remote JS debugging, though. If I stop Remote JS Debugging the issue no longer occurs.
I'll try the delete and rebuild here in a second.
@joshuapinter It happens every so often on my end. Usually refreshing the chrome window with the debugger in it and refreshing the app does the trick
@EngineerDiab Deleting the app and reinstalling it on the simulator doesn't fix it.
If it was just once in a while I could live with quitting the simulator and starting it up again but it's happening 80% of the time now and is disruptive to my productivity.
I'd like to figure out why it's happening so we can find out a proper solution.
@joshuapinter that would be the best option. At the moment, the quickest solution is to cmd/ctrl + r debugger window, then cmd/ctrl + r simulator.
I was able to reproduce this in Chrome debug mode. I will get this fixed. Thanks for reporting this everyone!
Thanks @appden!
While waiting for the bug to be fixed, closing and stopping the app in the simulator (hit cmd+shift+h twice rapidly to bring up the app switcher and swiping the app away), then opening the app again solves the issue for me. I have to do this every time instead of refreshing, but I at least haven't had to restart the simulator or reinstall the app every time I want to refresh.
I believe that turn off Chrome debug mode then back on again should also effectively workaround this issue.
i have the same issue, when i refresh again and insert data then i select data from realm's db object is undefine
Same issue here.
Can any of you provide a simple app or code snippet that reproduces the problem? We would like to get this resolved asap and once we understand exactly what is going on which should be able to get a fix out pretty quickly.
Well of course! I'll spend some time this evening getting this set-up.
@alazier It sounded like @appden was able to reproduce the problem as well.
@joshuapinter you are right - I thought I was commenting on the change events issue. We have a fix for this one incoming soon. Hope to do a release today.
Hey everyone, we released 0.14.0-rc
. We're really hoping you'll try it out and let us know that this issue is fixed. Thanks!
@appden been testing with 0.14.0-rc today and have not encountered this error again
Double confirmation, does not happen with 0.14.0-rc. Thanks for fixing that!
👍
Thanks everyone for the confirmation that this is fixed in the RC! We'll do a final release very soon. 🎊
@appden Can you publish the RC version on NPM?
Hey everyone, I just published the official 0.14.0
release, so please update to that. 🎉
We're still seeing this on 0.15.0:
Reloading the app usually fixes it, so we're not too worried, but it'd be good to know if it's something in our code or not.
@dccarmo this looks like a bug on our side and may only be an issue when using chrome debugging. Will look into it.
Same issue on version 0.15.0.
Upgraded to react-native@0.39.1 and it seemed to resolve the issue for me. Previously I was on react-native@0.36.0 and it was an issue there.
Still have this on RN 0.39.1
Reopening as this won't be addressed until realm-js updates to a version of the object store that includes realm/realm-object-store#297.
Any eta on that?
Same problem. None of those methods above solves. I upgraded from Realm 1.0.0 React Native 0.40 to Realm 1.2.0, RN 0.42.3
This message just started appearing. Sometimes refreshing the simulator will fix it but other times I have to quit the simulator and launch it again.
Can you shed some light on what this error is and how to go about preventing it?
Thanks.