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

Fails to render pages/_error when exception is thrown in CSR #35

Open
wilsonpage opened this issue Jul 23, 2021 · 0 comments
Open

Fails to render pages/_error when exception is thrown in CSR #35

wilsonpage opened this issue Jul 23, 2021 · 0 comments

Comments

@wilsonpage
Copy link

wilsonpage commented Jul 23, 2021

Describe the bug
When an exception is throw in the render phase of a clientside rendered page the Next.JS pages/_error fails to render. I'm unsure if this is a bug in next, preact or next-plugin-preact happy to post elsewhere if there's a better place.

To Reproduce

Steps to reproduce the behavior:

  1. Visit /
  2. Click link to render /failing
  3. Observe fails to JS console showing 5x render and exceptions

image

Expected behavior

  • Should only invoke pages/failing render once
  • Should then render pages/_error
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

No branches or pull requests

1 participant