Skip to content

fix: log fatal query error#636

Open
steinybot wants to merge 1 commit into
relay-tools:masterfrom
steinybot:patch-1
Open

fix: log fatal query error#636
steinybot wants to merge 1 commit into
relay-tools:masterfrom
steinybot:patch-1

Conversation

@steinybot
Copy link
Copy Markdown

@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.
Comment thread src/renderElement.tsx

if (!props && error) {
if (process.env.NODE_ENV !== 'production')
console.error(
Copy link
Copy Markdown
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