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

How to disable SSR completely #1737

Closed
jsvishal opened this issue Jun 19, 2019 · 5 comments
Closed

How to disable SSR completely #1737

jsvishal opened this issue Jun 19, 2019 · 5 comments
Labels

Comments

@jsvishal
Copy link

Hi , I have developed one of my application using this starter kit,

Now we want our application to not perform SSR
I know SSR has many benefits but we need it to render on the client side

Can anyone please help.
I tried many things but no luck

@mmarkelov
Copy link

@jsvishal maybe you shouldn't use RSK for your approach? #984 (comment)
But also you can check #833

@jsvishal
Copy link
Author

I have removed this line. Its seem to work.

let me know if this is fine

data.children = ReactDOM.renderToString(
            <App context={context}>{route.component}</App>,
);
data.children = ""   //working

@mmarkelov
Copy link

@jsvishal youp! You can just comment data.children = ... and it won't do any server rendering

@jsvishal
Copy link
Author

But it calls APIs on serverside

@ulani
Copy link
Member

ulani commented May 27, 2021

@jsvishal thank you very much for crating this issue! Unfortunately, we have close it due to inactivity. Feel free to re-open it or join our Discord channel for discussion.

NOTE: The main branch has been updated with React Starter Kit v2, using JAM-style architecture.

@ulani ulani closed this as completed May 27, 2021
josephfrazier added a commit to josephfrazier/reported-web that referenced this issue Oct 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants