Realm React v0.9.0
github-actions
released this
17 Jul 11:12
·
57 commits
to main
since this release
Enhancements
- Added the ability to pass an existing
Realm.App
instance inAppProvider
with theapp
prop. (#6785)
import { AppProvider } from "@realm/react";
const app = new Realm.App(...);
function MyApp() {
return (
<AppProvider app={app}>
...
</AppProvider>
);
}
Fixed
- Fixed listener that was not being removed during unmounting of
useObject
anduseQuery
if the listener was added in a write transaction. (#6552) Thanks @bimusiek! - The
app
prop inAppProvider
meant forLocalAppConfiguration
was not being used by Atlas Device Sync and has been removed.app
is now only used to pass an existingRealm.App
to the provider. (#6785)
Compatibility
- React Native >= v0.71.4
- See "Compatibility" for a specific Realm version in Realm's CHANGELOG.