Realm JavaScript v10.20.0-alpha.1 #3978
Replies: 5 comments 8 replies
-
Will test further but so far things seem to be working with RN 0.66.0-rc.3 along with Android 10 on a physical device 👍🏻 |
Beta Was this translation helpful? Give feedback.
-
So far there is no issue on IOS & Android. What is the roadmap, may i ask ? @kraenhansen |
Beta Was this translation helpful? Give feedback.
-
"realm": "10.20.0-alpha.1" I'm having an issue calling Realm Functions from the User class. This is on an existing project, and was working before the switch to 10.20.0-alpha.1. LOG [TypeError: Cannot read property 'findOrganizationsAssociatedByEmailAddress' of undefined] I log the realmUser object prototype and this is the result: ["__Realm_internal", "constructor", "_customData", "accessToken", "apiKeys", "deviceId", "id", "identities", "isLoggedIn", "profile", "providerType", "refreshToken", "state", "_callFunction", "_linkCredentials", "_logOut", "_makeStreamingRequest", "_newWatchStream", "_pushDeregister", "_pushRegister", "_refreshCustomData", "_sessionForOnDiskPath", "toString", "toLocaleString", "valueOf", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "proto", "defineGetter", "defineSetter", "lookupGetter", "lookupSetter"] Edit: forgot to mention how I am invoking the realm function: const organizations = await realmUser.functions.findOrganizationsAssociatedByEmailAddress(emailAddress); Update: I changed realm back to 10.91.1 and set :hermes_enabled => false, and then everything works as expected again. Logged the realmUser object prototype, and it looks as it should: ["deviceId", "apiKeys", "accessToken", "providerType", "profile", "_customData", "refreshToken", "isLoggedIn", "state", "id", "identities", "_newWatchStream", "_pushRegister", "_linkCredentials", "_pushDeregister", "_refreshCustomData", "_logOut", "_makeStreamingRequest", "_callFunction", "_sessionForOnDiskPath", "linkCredentials", "logOut", "callFunction", "refreshCustomData", "mongoClient", "push", "functions", "auth", "customData", "_functionsOnService", "constructor", "toString", "toLocaleString", "valueOf", "hasOwnProperty", "propertyIsEnumerable", "isPrototypeOf", "defineGetter", "defineSetter", "lookupGetter", "lookupSetter", "proto"] |
Beta Was this translation helpful? Give feedback.
-
In my case updating to that alpha generates an error when creating an object with a property of array of strings, ie: realm.create(
'Entity',
{categories: ['personal']},
UpdateMode.Modified
); gives:
but, interestingly, everything persists correctly. But the good news is that now Realm works perfectly with Reanimated 2, reload works without a crash, so I believe that issue could be closed soon: software-mansion/react-native-reanimated#1424 |
Beta Was this translation helpful? Give feedback.
-
We've released a new version of Realm JS with support for the Hermes engine: Realm JS v10.20.0-alpha.2 Please take it for a spin and provide any feedback or issues you might have using the Hermes issue template. |
Beta Was this translation helpful? Give feedback.
-
NOTE: DO NOT USE THIS RELEASE IN PRODUCTION!
NOTE: This is an early (alpha) release with Hermes/JSI support: We expect crashes and bugs.
Enhancements
Fixed
Compatibility
Internal
This discussion was created from the release Realm JavaScript v10.20.0-alpha.1.
Beta Was this translation helpful? Give feedback.
All reactions