Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardReactuse() in renderSingle-choice MCQ

Why is calling use() inside a try/catch (to swallow a rejected promise) fundamentally unable to act as an error boundary for the suspension itself?

function Data({ p }) { try { const v = use(p); // p is pending return <span>{v}</span>; } catch (e) { return <span>error</span>; } }