-
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
Upgrading @realm/react from 0.7.0 to 0.8.0+ breaks app #6842
Comments
➤ PM Bot commented: Jira ticket: RJS-2887 |
Try to set |
Ok so I tried to set The app loads correctly, but the moment I press on anything, every child of There's nothing appearing in the logs when that occurs. |
Having the same issue, upgrading from 0.7.0 to anything higher makes my app rerender continuously. |
I am having the same issue. 0.7.0 works well, but all other versions are broken. Reproduction: export default function Layout() {
return (
<RealmProvider schema={schema} closeOnUnmount={false}>
<TextInput />
</RealmProvider>
);
} Focusing the text input will always re-render the children of RealmProvider on Android, so the keyboard always hides. |
I tried to setup a project to debug, but I've failed to reproduce it consistently. Would any of you be able to share a link to a repository which has this symptom? As minimal as possible to trigger the issue and instructions on the steps I'd have to take 🙏 |
Awesome thanks for the support!! |
The fix is released as |
Yeah, issue resolved. Thanks! |
So what are the best practices now for using @realm/react with |
FWIW I kept my original code structure, with a single provider in my app layout, and it just works. With the update I didn't have to set Not sure if that's the recommended best practice though! |
How frequently does the bug occur?
Always
Description
Unable to keep the app running, the realm keeps getting closed for no reason
Stacktrace & log output
Can you reproduce the bug?
Always
Reproduction Steps
This is how the provider is initialized:
This provider only mounts once, so it shouldn't ever close.
Version
0.8.0+
What services are you using?
Local Database only
Are you using encryption?
Yes
Platform OS and version(s)
iPhone 15, OS 17.5
Build environment
Expo 51.0.26
Realm 12.12.1
Cocoapods version
No response
The text was updated successfully, but these errors were encountered: