next.js
06d45e7d - fix: prevent fetch abort errors propagating to user error boundaries (#86277)

Commit
46 days ago
fix: prevent fetch abort errors propagating to user error boundaries (#86277) When navigating away from a page due to an MPA navigation or browser refresh, we were aborting any pending RSC requests. However, in the case where the abort was due to an MPA navigation, the browser would restore the execution context via the built-in bfcache, and the aborted fetch would cause React to get in an errored state, leading to "BodyStreamBuffer was aborted". Rather than aborting the pending requests, we instead mark that we would have aborted due to the page unloading. That still solves the original reason the flag was added (suppressing the fetch errors that get logged) Fixes NAR-519
Author
Parents
Loading