next-plugin-preact
next-plugin-preact copied to clipboard
Fails to render pages/_error when exception is thrown in CSR
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
- Repro: https://nextjs-preact-demo-wilsonpage.vercel.app/
- Source: https://github.com/wilsonpage/next-preact-error-handling-bug
Steps to reproduce the behavior:
- Visit
/ - Click link to render
/failing - Observe fails to JS console showing 5x render and exceptions

Expected behavior
- Should only invoke
pages/failingrender once - Should then render
pages/_error