Skip to content
Snippets Groups Projects

Release 3.0

Merged Jonathan Weth requested to merge merge-release-3.0 into master
64 files
+ 4421
3079
Compare changes
  • Side-by-side
  • Inline
Files
64
@@ -70,7 +70,7 @@ const apolloOpts = {
}
// Add a snackbar on all errors returned by the GraphQL endpoint
// If App is offline, don't add snackbar since only the ping query is active
if (!vm.$root.offline) {
if (!vm.$root.offline && !vm.$root.invalidation) {
vm.$root.snackbarItems.push({
id: crypto.randomUUID(),
timeout: 5000,
@@ -79,7 +79,7 @@ const apolloOpts = {
});
}
}
if (networkError) {
if (networkError && !vm.$root.invalidation) {
// Set app offline globally on network errors
// This will cause the offline logic to kick in, starting a ping check or
// similar recovery strategies depending on the app/navigator state
@@ -90,6 +90,7 @@ const apolloOpts = {
vm.$root.offline = true;
}
},
fetchPolicy: "cache-and-network",
},
},
};
Loading