Answer the question
In order to leave comments, you need to log in
How to render state on the server?
I'm rendering on the server with redux and react-router. I initialize the state to default. As I understand renderToString()
it, it does not make a request to the api that is performed in my componentDidMount()
. Because of this, just the loading component is rendered on the server, and not the list I need.
How can I force the request to be executed internally componentDidMount()
on the server?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question