I want to create a server-processed redux application with the API request needed to render the route handler. Respond to components.
I pass the request function in my actions, and the user middleware launches the requests and sends their results. This works fine for the client, but I'm struggling with towing things when rendering the server:
- I need to know what API requests are necessary for rendering routes and do not want to duplicate this knowledge both in the client code and on the server.
- On the server, I need to know that my API requests have ended so that I can display the html in a string and send it to the client.
Any ideas / links?
source share