News for hackers. Stuff that matters.
Re:Show HN: Bhvr, a Bun and Hono and Vite and React Starter by dev_l1x_be on Sunday April 27, 2025 @04:40PM (#43814935)
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?
Re:Show HN: Bhvr, a Bun and Hono and Vite and React Starter by lucasknight on Tuesday April 29, 2025 @09:43AM (#43832503)
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