Skip to content
Discussion options

You must be logged in to vote

is global-error.tsx actually wrapped with the root layout?

The other way around, both in implementation and as observable behavior, the global-error wraps the root layout. It is just not as straightforward to follow from the code though, I think anyway, unless you have navigated this before.

There's a DefaultGlobalError, in that file both a type and a component are exported. You can see they are used at app-render and app-router, but like, the proof I'd say is in the let content = ( bit in app-router.

That content contains the root layout, and this content is further wrapped with other boundaries, one of those is something like globalError error components, and another is the DefaultGlo…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@stefanprobst
Comment options

@icyJoseph
Comment options

@stefanprobst
Comment options

@icyJoseph
Comment options

Answer selected by stefanprobst
@stefanprobst
Comment options

@icyJoseph
Comment options

@icyJoseph
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants