next.js
f0292f68 - fix: suppress error boundary flash during page unload

Commit
113 days ago
fix: suppress error boundary flash during page unload When `router.refresh()` is in-flight and user refreshes the page, the browser aborts the RSC fetch which causes an error that briefly renders the error boundary before the page unloads. This fix checks `isPageUnloading` in the error boundary's render method and suppresses the error UI when the page is unloading. Fixes #87681
Author
Parents
Loading