-
Notifications
You must be signed in to change notification settings - Fork 576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug on nested array linking objects update, (bug not happening on Realm 12.2.1) #6889
Comments
➤ PM Bot commented: Jira ticket: RJS-2903 |
Bonus on above reproducible repo:
|
Hello any news? I also updated the reproducible example by simplifying a lot some business logic so that it's only reproducible with simple Realm objects. We are available for call or discussion on the subject. We need to release new version on store with targetApi34 and RN 0.74, but this is our only blocker at this point :( |
@angelos3lex thanks for reporting the bug and for reaching out (again). I tried looking into your reproduction repo, but there's a lot going on in there. The use of DAOs are not a pattern we've been promoting as it makes the code more indirect and add a lot of complexity that I'm having a hard time wrapping my head around TBO. As you've hinted, a bug like this is likely not platform specific and to simplify things, making it easier for us to reproduce the bug and add a test for it, it would be great if you could reproduce it using a simple Thanks a lot in advance! |
Hello @kraenhansen I just created a new branch with a really minimal example, |
That's a huge improvement! Thanks - I'll get back as I get to investigate this further. |
Hey @kraenhansen any advancements on the matter? |
Another comment on the subject: |
Hello @kraenhansen, kindly asking for any update on this. Or maybe we could help more from our side somehow? |
Havn't had time to investigate this. |
How frequently does the bug occur?
Always
Description
So we have to update to RN 0.74.5 (from 0.72) and we were on 12.2.1 realm version. Unfortunately, keeping same realm version, makes the app block on white screen, and through logcat I can see it's just saying " Building an exports object", but never proceeds.
So, I tried with 12.12.1 and 12.13.1 realm versions, which do not have this problem and everything goes smoothly, except from one use case.
I have a parent object
Participant
which has a subTable array ofParticipantMeta
objects.ParticipantMeta
are linking objects to the parentParticipant
.When i create a Participant object with some metas, it's correctly added on the db.
When i query it, and re-add it using
realm.create
withRealm.UpdateMode.ALL
, without any change at all, the meta list array becomes empty.I have created a reproducible "minimal" repo that you can see on the logs the problem.
Update to RN 0.74 is crucial as we need to target api 34, and be able to release on playstore. Currently, this is our only blocker.
Stacktrace & log output
Can you reproduce the bug?
Always
Reproduction Steps
https://github.com/angelos3lex/Realm-js-12.13.1-bug-repro
Check this repo ^
(Mainly
App.tsx
onPress
of the button is where the whole logic begins.)PS: Didn't test the reproducible example on iOS, but on my real case app it's also happening on iOS.
Version
12.12.1, 12.13.1
What services are you using?
Local Database only
Are you using encryption?
No
Platform OS and version(s)
android, iOS, realm 12.12+, RN 0.74.5
Build environment
no debugger
Cocoapods version
didn't test the reproducible example on iOS, but on my real case app it's also happening on iOS.
The text was updated successfully, but these errors were encountered: