Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix streaming SSR with multi-byte characters #35724

Merged
merged 1 commit into from Mar 30, 2022

Commits on Mar 30, 2022

  1. fix: multi-byte-streaming-ssr

    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.
    martinnabhan committed Mar 30, 2022
    Configuration menu
    Copy the full SHA
    04cf4c9 View commit details
    Browse the repository at this point in the history