logoalt Hacker News

dev_l1x_be04/27/20251 replyview on HN

Is there a stack for loading html safely from the backend that has proper error handling? I would love to use HTMX but not sure how to do (for starting) error handling in it. I need to render some backend generated charts mostly, maybe adjust the time (datepicker). Is there something for this or just use vanilla?


Replies

lucasknight04/29/2025

You might want to have a look at Remix [0]. I haven't used it extensively myself, but it does claim to handle errors well.

> Route Error Boundaries keep the happy path happy. Each route module can export an error boundary next to the default route component.

> If an error is thrown, client or server side, users see the boundary instead of the default component. Routes w/o trouble render normally, so users have more options than slamming refresh. If a route has no boundary, errors bubble up. Just put one at the top and chill out about errors in code review, yeah?

[0] https://remix.run