You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I noticed that Realm is behaving very differently according to wither debugging or not
This is just a summary of the idea :
I'm printing object.constructor.name to find the type of the object
When debugging (Remotely using Chrome or Safari) :
let realm = new Realm(config);
realm.constructor.name --> will print (Realm)
let dogs = realm2.objects('Dog');
dogs.constructor.name --> will print (Results)
(inserting few dogs)
for (let oneDog of dogs) {
oneDog.constructor.name --> will print (RealmObject)
} --> works perfectly
When not debugging:
let realm = new Realm(config);
realm.constructor.name --> will print (Object)
let dogs = realm2.objects('Dog');
dogs.constructor.name --> will print nothing
(inserting few dogs)
for (let oneDog of dogs) {
oneDog.constructor.name --> not compiled
} --> will give the error below
Hello,
I noticed that Realm is behaving very differently according to wither debugging or not
This is just a summary of the idea :
I'm printing
object.constructor.name
to find the type of the objectWhen debugging (Remotely using Chrome or Safari) :
When not debugging:
I noticed the problem because I can't get the results of query from Realm when not debugging,
I'm not sure if it's a bug or a problem with my codes
Version of Realm and Tooling
Full code :
The text was updated successfully, but these errors were encountered: