Error Handling with Boundaries - Next.js Course #5

Опубликовано: 26 Февраль 2023
на канале: NL Tech
6,975
88

In this tutorial we'll talk about error handling in Next.js. In Next, you can create an error boundary with the error.js specialty file placed in a route folder. This specialty file creates a React error boundary. The error boundary will work for the route where its created and all child routes, but it will not apply to the layout and template. You can have a root error boundary created in the app folder, which will not cover the root layout and template. The root layout and template can be covered with a special global-error.js file which follows the same principles.

Contents:
0:00 Introduction
0:19 How the Error.js File Works
0:41 Creating an Error Boundary
2:06 Error Boundary Coverage
2:27 Root Error Boundary
3:02 Error Boundaries Architecture
3:26 Server-Side and Client-Side Exceptions
3:39 Conclusion

Email: [email protected]
Twitter:   / nikelaz  
LinkedIn:   / nikola-lazarov  

#nextjs #course


Смотрите видео Error Handling with Boundaries - Next.js Course #5 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь NL Tech 26 Февраль 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 6,975 раз и оно понравилось 88 людям.