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

Implementation of ssr with APIs set in redux #1883

Open
nazaninsoleimanian opened this issue Jul 16, 2022 · 0 comments
Open

Implementation of ssr with APIs set in redux #1883

nazaninsoleimanian opened this issue Jul 16, 2022 · 0 comments

Comments

@nazaninsoleimanian
Copy link

nazaninsoleimanian commented Jul 16, 2022

❓Question

Hi, I am working as a newbie developer on a project written with Razzle "^2.4.1". In the redux of this project, we have several APIs that are called in the app.js at the beginning and after filling the initial state of the redux, project is loaded.

SSR was not considered for this project from the beginning and we have an empty markup in the <div id='root'>{markup}</div> at server.js. now I want to activate SSR, and for this, I have to dispatch the APIs in server.js and update initial state of redux . I wanted to know how can I do this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant