Skip to content

HTML streaming not working with Remix app #966

Closed
@tom-sherman

Description

@tom-sherman

Describe the bug

When I run this locally, page is rendered as HTML with the suspense boundary as "Loading..." then the promise resolves on the server and is streamed to the client, and the "Loading..." changes to "Hello World".

On stackblitz though, no data is sent until the entire response is done (and so you see no "Loading..." state)

Link to the blitz that caused the error

https://stackblitz.com/edit/remix-starter-updated-t1fani?file=app%2Froutes%2Findex.tsx,app%2Fentry.server.tsx

Steps to reproduce

  1. Open the linked blits
  2. Load the index route

Expected behavior

See a Loading... message, and then this changes to "Data: Hello World"

Parity with Local

Screenshots

No response

Platform

Browser name  = Chrome
Full version  = 110.0.0.0
Major version = 110
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 83867546,
  "usedJSHeapSize": 82016534,
  "jsHeapSizeLimit": 4294705152
}
Hash = 927bd077ab89da68c6338c4363cc22e79cccb4ef

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions