Comparison
Error boundaryvsGraceful degradation
Error boundary
one component threw and you showed a fallback for that section instead of a blank white page.
A component that catches errors thrown during rendering below it and shows a fallback instead of unmounting the whole tree. It is the only thing standing between a null-dereference in a widget and an empty document. It does not catch errors in event handlers, in async callbacks or on the server, which is why teams that add boundaries still get blank pages from the paths boundaries cannot see.
Full entry →Graceful degradation
the provider went down and users got a cached answer or an honest error, because you decided that in design rather than at 3am.
A designed answer to 'the model is down or over budget': cached responses, a smaller model, a non-AI code path, or an honest error. Decided in design, not improvised mid-incident.
Full entry →