Skip to content

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.

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