Skip to content

Update before hydration completed error does not clarify which suspense boundary or which update #25625

Closed
@flyon

Description

@flyon

Error in question:

Uncaught Error: This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition.

The current error gives no indication which part of the code causes the error, making it very hard to debug.

Two suggestions / questions:

Indicate which suspense boundary
Is there any way to indicate which suspense boundary received an update? Showing the component tree like in other errors would be a very helpful first step.

Indicate which update
Even better of course would be if there could be any indication which update was triggered, with a call stack.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: UnconfirmedA potential issue that we haven't yet confirmed as a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions