Next.js 15 Tutorial - 28 - Handling Errors in Layouts
We've learned how error.tsx can gracefully handle runtime errors in pages and nested route segments.
But here's a catch most developers miss:
❗️ Errors thrown from a layout.tsx file in the same segment are not caught by that segment’s error.tsx.
If...
revivecoding.hashnode.dev8 min read