You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is probably wrong in this repo, but I am not sure where to put it. So It is not clear to me, if this is a setup problem, e Next.js issue, or a Preact (compat) thing.
When an exception is thrown while rendering a component, there seems to be some retry logic going on, causing multiple subsequently failing renders. I created a page which intentionnaly fails when clicking the "Fail" link:
This issue is probably wrong in this repo, but I am not sure where to put it. So It is not clear to me, if this is a setup problem, e Next.js issue, or a Preact (compat) thing.
When an exception is thrown while rendering a component, there seems to be some retry logic going on, causing multiple subsequently failing renders. I created a page which intentionnaly fails when clicking the "Fail" link:
Reproduce:
What I expect (and what is happening with vanilla React + Next.js):
On console:
Page getInitialProps
render page
...TypeError: Cannot read property 'click' of undefined...
ErrorPage getInitialProps
render ErrorPage
On screen:
What happens:
On console:
Page getInitialProps
render page
...TypeError: Cannot read property 'click' of undefined...
ErrorPage getInitialProps
render ErrorPage
... Uncaught (in promise) Error: Cancel rendering route
On screen:
What I find interesting:
render page
is outputted once, while the error is reported 4 times.Source of example
This is the source of the example, deployed here
The text was updated successfully, but these errors were encountered: