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

fix: log fatal query error #636

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

steinybot
Copy link

@steinybot steinybot commented Jan 28, 2024

Fixes #635

Logs the error from the query if it cause the props to be null.

This doesn't seem particularly great but it does what the other error case does. At least the error is visible now.

Logs the error from the query if it cause the props to be null.
@@ -31,6 +31,15 @@ Props) {
return undefined;
}

if (!props && error) {
if (process.env.NODE_ENV !== 'production')
console.error(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is probably more of a job for your network layer, WDT?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Errors loading the schema are hidden behind unrelated errors
2 participants