Skip to content

Instantly share code, notes, and snippets.

@broguinn
Created September 10, 2025 15:18
Show Gist options
  • Save broguinn/cd218af1a9efe35b4f7f05059fd1891f to your computer and use it in GitHub Desktop.
Save broguinn/cd218af1a9efe35b4f7f05059fd1891f to your computer and use it in GitHub Desktop.
diff --git a/apps/parking-web/src/apollo/client.ts b/apps/parking-web/src/apollo/client.ts
index 7da985b5..90f2b00f 100644
--- a/apps/parking-web/src/apollo/client.ts
+++ b/apps/parking-web/src/apollo/client.ts
@@ -57,6 +57,11 @@ const createApolloClient = () =>
},
},
}),
+ defaultOptions: {
+ watchQuery: {
+ skipPollAttempt: () => !document.hidden,
+ },
+ },
link: ApolloLink.from([sentryLink, authLink]),
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment