rsnext/test/production/react-18-streaming-ssr
Martin Nabhan 7b3ec57c62
Fix streaming SSR with multi-byte characters (#35724)
When using streaming SSR decodeText is called repeatedly with incoming
chunks of data. In that case a multi-byte character may occasionally
split between chunks, causing corruption. By setting the TextDecoder
option 'stream' to true, and reusing the same TextDecoder instance,
TextDecoder will memorise “unfinished” characters and decode them when
the next chunk comes.
2022-03-30 20:24:25 +02:00
..
index.test.ts Fix streaming SSR with multi-byte characters (#35724) 2022-03-30 20:24:25 +02:00