I want to build server-rendered redux app with API request required to render route handler React components.
I'm passing request-making function in my actions and custom middleware fires requests and dispatches their results. For client it works just fine, but I'm struggling tow things at server-rendering:
Any ideas/links?
I'm doing the same, basically using a function to get all the needed information from API calls, by specifying in your components which actions should run to fetch information.
I don't want to spend much time explaining that here, because there is an excellent tutorial of how to achieve this here (And it works perfect)
Cheers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With