SSR root does not adopt the RSC payload
Author: dai-shiCreated Sep 17, 2026Updated Sep 17, 2026
On the client, Minimal adopts each decoded payload: it strips reserved _ keys such as _etags, _buildId and _value, and records each slot's etag. The SSR path in packages/waku/src/lib/vite-rsc/ssr.tsx hands the decoded payload to INTERNAL_ServerRoot without adopting it. Components rendered during SSR see the reserved keys, and unstable_isImmutableElement finds no etags, so the server and the client render from differently shaped element records. There is a FIXME at that line from #2298.
Any fix has to keep SSR streaming intact. A derived promise that is recreated on every render suspends repeatedly, and awaiting the whole payload at the root stops inner Suspense fallbacks from streaming.
Source: wakujs/waku