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

CollectivePage: Don't crash with minor GraphQL errors #6122

Closed
wants to merge 1 commit into from

Conversation

Betree
Copy link
Member

@Betree Betree commented Mar 26, 2021

Improves the situation for Fixer outage by "hiding" the amounts that we're not able to display and showing an error toast rather than crashing the entire page:

TODO:

image

@Betree Betree self-assigned this Mar 26, 2021
@vercel
Copy link

vercel bot commented Mar 26, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/opencollective/opencollective-frontend/HJUGPqUAQZtWTbai7epMwu4H7F38
✅ Preview: https://opencollective-git-enhancement-collective-page-no-crash-a1cc31.vercel.app

skipDataFromTree = true;
} catch (e) {
console.error(`Collective page: unable to preload data for ${slug}`, e);
ssrGraphqlError = e;
Copy link
Member Author

Choose a reason for hiding this comment

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

Had to come up with this workaround because of apollographql/apollo-client#4644

@Betree Betree changed the title CollectivePage: Don't crash is minor GraphQL errors CollectivePage: Don't crash with minor GraphQL errors Mar 26, 2021
@Betree
Copy link
Member Author

Betree commented Mar 3, 2023

It's difficult to achieve with our current configuration, we may revisit later

@Betree Betree closed this Mar 3, 2023
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.

1 participant