Hi,
I’m having trouble updating a Realm object in React Native Realm. I’m querying for the object, able to console.log the object, but once I try to update the object by setting one of its keys, I get this error:
Attempting to create an object of type ‘[OBJECT]’ with an existing primary key value ‘5f76395eeca29f5aeb466873’
I’m particularly confused because I’m able to successfully update an object using that pattern (querying then mutating) in a different component.
Any idea what could be going on here?
Thanks!