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

Handle when graphql handler not found in cell prerendering #6201

Closed
dac09 opened this issue Aug 10, 2022 · 0 comments · Fixed by #6206
Closed

Handle when graphql handler not found in cell prerendering #6201

dac09 opened this issue Aug 10, 2022 · 0 comments · Fixed by #6206
Assignees
Labels
bug/confirmed We have confirmed this is a bug

Comments

@dac09
Copy link
Collaborator

dac09 commented Aug 10, 2022

Background

Cell prerendering about to be introduced in Redwood V3 requires the presence of the graphql handler at the default location under api/src/functions/graphql.{js,ts}

This is because the actual handler is used to make graphql calls internally when prerendering cells.

What's the issue?

It's possible (and plausible) that users move or rename the graphql handler in their project. In this situation we want to warn users that we couldn't find the graphql handler, and revert to the old behaviour of just rendering the Cell's loading state.

Other things to explore

  • Can we allow user's to override the path that prerendering uses to load the graphql handler?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/confirmed We have confirmed this is a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant