Skip to content

Authenticated layouts with CatchBoundary/ErrorBoundary #1201

Closed Answered by sergiodxa
gregbty asked this question in Q&A
Discussion options

You must be logged in to vote

You can create a layout route and put the catch boundary and error boundary there, then in the root return the authenticated user data and render the header there or only return the user data and call useMatches from the catch/error boundaries to get the route data and render the header.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@gregbty
Comment options

@gregbty
Comment options

Answer selected by gregbty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants