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

useObject and reinsertion item #6687

Open
astrahov opened this issue May 29, 2024 · 2 comments
Open

useObject and reinsertion item #6687

astrahov opened this issue May 29, 2024 · 2 comments

Comments

@astrahov
Copy link

How frequently does the bug occur?

Always

Description

When deleting and recreating an object, the deletion is handled properly and the object becomes null. However after reinsertion it stays null.

The temporary fix of @mordechaim worked:
#4514 (comment)

// replace this
const cat = useObject('Cat', 'id-1')

// with
const cat = useQuery('Cat').filtered('id == $0', 'id-1')[0]

Stacktrace & log output

No response

Can you reproduce the bug?

Always

Reproduction Steps

No response

Version

12.9.0

What services are you using?

Local Database only

Are you using encryption?

No

Platform OS and version(s)

iOS 17.5

Build environment

{
  "dependencies": {
    "react": "18.2.0",
    "react-native": "0.74.1",
    "realm": "12.9.0",
  },
}

Cocoapods version

1.14.3

Copy link

sync-by-unito bot commented May 29, 2024

➤ PM Bot commented:

Jira ticket: RJS-2826

@danibonilha
Copy link

Facing the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants