You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an endpoint that SSEs some HTML (to be used with HTMX). The rendered component I stream in uses an ErrorBoundary (with an async component, but not a Suspense). Normally it works fine, but when sent through SSE the ErrorBoundary's content does not get rendered because it instead emits a streaming stub, like <template id="E:10"></template><!--E:10-->. Is there a way to prevent this and just have the ErrorBoundary wait for its child as it would outside of the streaming context?
I might try to make a reproduction for this later.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have an endpoint that SSEs some HTML (to be used with HTMX). The rendered component I stream in uses an ErrorBoundary (with an async component, but not a Suspense). Normally it works fine, but when sent through SSE the ErrorBoundary's content does not get rendered because it instead emits a streaming stub, like
<template id="E:10"></template><!--E:10-->
. Is there a way to prevent this and just have the ErrorBoundary wait for its child as it would outside of the streaming context?I might try to make a reproduction for this later.
Beta Was this translation helpful? Give feedback.
All reactions