question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

React ssr streaming and routing

See original GitHub issue

Hello there.

I’ve just tried implementing react ssr streaming with the last emotion-server version 9.0.0 and it works well!

But when accessing one of my routes defined by universal(import('./my_component')) I get the common error:

Warning: Text content did not match. Server: "interpolated content from server" Client: "Loading..."

This error does not appear if I disable the streaming part…

I don’t really understand what is going on here and how to fix this. Maybe it’s a react related issue with streaming. Or a redux-first-router issue?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
faceyspaceycommented, Feb 6, 2018

It looks like the client is rendering the page before it has the corresponding chunk.

0reactions
GuillaumeCiscocommented, Feb 9, 2018

Thank you @faceyspacey for these pieces of information! I truly understand it correctly now. Thanks again, I hope it will help others 😉

Cheers,

Read more comments on GitHub >

github_iconTop Results From Across the Web

React 18: Streaming SSR - Next.js
Streaming SSR. Streaming allows you to incrementally render parts of your UI to the client. In Next.js 13, you can start using the...
Read more >
Streaming Server-Side Rendering - Patterns.dev
Generate HTML to be rendered on the server in response to a user request.
Read more >
Streaming server-side rendering (SSR) - Shopify.dev
Streaming SSR is a feature in React that allows you to load data over a network in multiple chunks. The chunks are loaded...
Read more >
React 18: Concurrency and Streaming SSR - This Dot Labs
So first, current SSR efforts do the entire render of the HTML page, and wait until it's completely finished before sending it to...
Read more >
ReactDOMServer – React
Render a React element to its initial HTML. Returns a Node.js Readable stream that outputs an HTML string. The HTML output by this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found