what is the difference between global-error.tsx (page) vs root error.tsx component
Answered
Gulf menhaden posted this in #help-forum
Gulf menhadenOP
Do the global-error page does not work if you have a root error.tsx component?
Answered by joulev
it still works. the difference is that the root error.tsx is wrapped inside the root layout, while global-error.tsx is not. hence if your root layout blows up for whatever reason, error.tsx doesn't catch it but global-error.tsx does
2 Replies
@Gulf menhaden Do the global-error page does not work if you have a root error.tsx component?
it still works. the difference is that the root error.tsx is wrapped inside the root layout, while global-error.tsx is not. hence if your root layout blows up for whatever reason, error.tsx doesn't catch it but global-error.tsx does
Answer
Gulf menhadenOP
I see. thank you very much!