Skip to content

[nextjs] Preact renders 5x when error is thrown in render and cancels rendering route #3233

@wilsonpage

Description

@wilsonpage

Describe the bug
This is a bug related to Preact with Next.JS. If there's a better place to post this please let me know :) When an exception is throw in the render phase of a clientside rendered page the Next.JS pages/_error fails to render.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions