Skip to content
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

Assigning a collection to a RealmValue property seems to merge it with other objects rather than replace it #3623

Closed
nirinchev opened this issue Jun 10, 2024 · 1 comment · Fixed by #3652
Assignees

Comments

@nirinchev
Copy link
Member

var objId = ObjectId.GenerateNewId();
await client1.WriteAsync(() =>
{
    client1.Add(new MixedSchema
    {
        Id = objId, Name = "Mario", Mixed = new List<RealmValue> { "foo", 10 }
    });
});
await client2.WriteAsync(() =>
{
    var obj = new MixedSchema
    {
        Id = objId, Name = "Mario", Mixed = new List<RealmValue> { "bar", 20 }
    };

    client2.Add(obj);

    obj.Name = "Luigi";
});

This code seems to result in an object with 4 entries in the Mixed list rather than 2.

Copy link

sync-by-unito bot commented Jun 10, 2024

➤ PM Bot commented:

Jira ticket: RNET-1156

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant