Display better errors in next.js using this approach #shorts

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

The error page can also take a "reset" function that attempts to rerender the component. Although I don't really understand what the point is because it doesn't re-execute operations inside server components.

codinginflow
Автор

Not much NextJS13.4 content out atm and u leading the pack.

felixmildon
Автор

Could you also make a video on how to handle errors in tRPC? No matter what kind of error I throw in my backend my frontend can't seem to be able to catch it, my queries don't even have a failure count or an error prop

outis
Автор

What would be the right way to throw an error from server action. Assume, I am making a db call to check product exist or not, if it does not exist, I throw an error stating product does not exist. But I want it more to be a validation message kind of popup instead of an error thrown

devsami
Автор

The user will never see that modal as it's only enabled in development.

bjorno_dev
Автор

So for each page( folder) I should include this error.tsx file to better handle errors?

ardianhotii