Files
Nathan Nguyen da4d0b232c fix(app-router): preserve falsy thrown values in error boundaries (#1000)
App Router error boundaries treated the stored error value itself as the presence flag. That makes thrown values like undefined, null, 0, an empty string, or false indistinguishable from an empty boundary state, so the children can render again instead of the segment fallback.

The boundary state now stores either null or a wrapper containing the thrown value, and route error component typing admits unknown values to match React and Next.js behavior. The regression coverage checks both the state transition contract and a client component route that throws every falsy literal.
2026-05-01 23:34:26 +01:00
..
2026-02-24 09:29:39 -06:00