Uh oh!
There was an error while loading. Please reload this page.
fix: suppress error message in non-development environments - #69
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR upgrades Apollo Client from v3.11.8 to v3.14.0 and implements console suppression for Apollo-related errors and warnings in non-development environments. The changes help reduce noise in production logs by filtering out Apollo Client internal warnings while preserving application-level logging.
- Upgraded @apollo/client dependency to version 3.14.0
- Added console suppression logic for Apollo-related messages in non-development environments
- Introduced
withDeprecationsDisabledhelper method to handle deprecation warnings during watchQuery operations
Reviewed Changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| package.json | Updates @apollo/client dependency from ^3.11.8 to ^3.14.0 |
| package-lock.json | Reflects the updated @apollo/client version and integrity hash |
| src/util/apollo-client.ts | Adds console suppression logic and exports isNotDevelopment flag |
| src/util/logs-polling-utilities.ts | Implements withDeprecationsDisabled wrapper for watchQuery calls to suppress deprecation warnings |
| test/unit/util/apollo-client.test.ts | Adds comprehensive tests for console suppression behavior |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
fix: suppress error message in non-development environments