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

React Native: Remove bad onError configuration #3064

Merged
merged 1 commit into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ function AppWrapperSync() {
<RealmProvider
sync={{
flexible: true,
onError: console.error,
initialSubscriptions: {
update(subs, realm) {
subs.add(realm.objects('Profile'));
Expand Down Expand Up @@ -131,7 +130,6 @@ const createConfig = user => {
sync: {
user: user,
flexible: true,
onError: console.error,
},
};
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ const createConfig = user => {
sync: {
user: user,
flexible: true,
onError: console.error,
},
};
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ const createConfig = user => {
sync: {
user: user,
flexible: true,
onError: console.error,
},
};
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,7 @@ function AppWrapperSync() {
return (
<AppProvider id={APP_ID}>
<UserProvider fallback={LogIn}>
<RealmProvider
sync={{
flexible: true,
onError: console.error,
}}>
<RealmProvider sync={{flexible: true}}>
<App />
</RealmProvider>
</UserProvider>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ function AppWrapperSync() {
<RealmProvider
sync={{
flexible: true,
onError: console.error,
initialSubscriptions: {
update(subs, realm) {
subs.add(realm.objects('Profile'));
Expand Down Expand Up @@ -132,7 +131,6 @@ const createConfig = (user: Realm.User): Realm.ConfigurationWithSync => {
sync: {
user: user,
flexible: true,
onError: console.error,
},
};
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ function AppWrapperOfflineSync() {
flexible: true,
newRealmFileBehavior: realmAccessBehavior,
existingRealmFileBehavior: realmAccessBehavior,
onError: console.error,
}}>
<RestOfApp />
</RealmProvider>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ const createConfig = (user: Realm.User): Realm.Configuration => {
sync: {
user: user,
flexible: true,
onError: console.error,
},
};
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ const createConfig = (user: Realm.User): Realm.Configuration => {
sync: {
user: user,
flexible: true,
onError: console.error,
},
};
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,7 @@ function AppWrapperSync() {
return (
<AppProvider id={APP_ID}>
<UserProvider fallback={LogIn}>
<RealmProvider
sync={{
flexible: true,
onError: console.error,
}}>
<RealmProvider sync={{flexible: true}}>
<App />
</RealmProvider>
</UserProvider>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ function AppWrapperSync() {
return (
<AppProvider id={APP_ID}>
<UserProvider fallback={LogIn}>
<RealmProvider
sync={{
flexible: true,
onError: console.error,
}}>
<RealmProvider sync={{flexible: true}}>
<App />
</RealmProvider>
</UserProvider>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ function AppWrapperSync() {
<RealmProvider
sync={{
flexible: true,
onError: console.error,
initialSubscriptions: {
update(subs, realm) {
subs.add(realm.objects('Profile'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ function AppWrapperOfflineSync() {
flexible: true,
newRealmFileBehavior: realmAccessBehavior,
existingRealmFileBehavior: realmAccessBehavior,
onError: console.error,
}}>
<RestOfApp />
</RealmProvider>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ function AppWrapperSync() {
return (
<AppProvider id={APP_ID}>
<UserProvider fallback={LogIn}>
<RealmProvider
sync={{
flexible: true,
onError: console.error,
}}>
<RealmProvider sync={{flexible: true}}>
<App />
</RealmProvider>
</UserProvider>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ function AppWrapperSync() {
<RealmProvider
sync={{
flexible: true,
onError: console.error,
initialSubscriptions: {
update(subs, realm) {
subs.add(realm.objects('Profile'));
Expand Down