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.

Add server rendering support

See original GitHub issue

To do this, we’d need to consume the iterable from resolveElements to the end, then render with that result. We’d have to do the same thing on the client side to set initialRenderArgs due to the async nature of element resolution as well.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
taioncommented, Dec 1, 2016

Take a look at https://github.com/4Catalyzer/found/pull/56. I haven’t added docs yet, but the example shows the basic API (more details in PR).

0reactions
rojobuffalocommented, Jul 23, 2017

I think you’re right. It just got really hairy trying to webpack the server which webpacks the client. Running those compiles separately and still having everything shake out was getting really difficult and I had to abandon it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adding a server-side rendering support for an existing React ...
The main function of server-side rendering is to take existing client-side code and render it in the server-side with the smallest amount of ......
Read more >
Server Rendering - Redux - JS.ORG
The key step in server side rendering is to render the initial HTML of our component before we send it to the client...
Read more >
How to Enable Server-Side Rendering for a React App
In this tutorial, you will initialize a React app using Create React App and then modify the project to enable server-side rendering.
Read more >
Server-Side Rendering (SSR) - Vue.js
Rendering an App # · Create a new directory and cd into it · Run npm init -y · Add "type": "module" in...
Read more >
Server-Side Rendering - Vite
Vite provides built-in support for server-side rendering (SSR). The Vite playground contains example SSR setups for Vue 3 and React, which can be...
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