More futures - Some useful concepts here!
See original GitHub issueThis is a great project. But I would like some more buns.
-
deferred actions need to be simplified, for example, as discussed with Dan Abramov, and was implemented https://github.com/erikras/react-redux-universal-hot-example/blob/master/src/redux/middleware/clientMiddleware.js
-
I’d like to upload data for server rendering without additional requests, for example using this technique not
data = await request.get('/test/rest');
butapp.handle({...request, url: '/test/rest', method: 'get'}, response, next)); router.get('/test/rest', (req,res)=>{ if (__INNER_REQUEST__) { return obj; } else { res.json(obj); } })
-
write the repository to the local storage and restore it when the page is loaded for a friendlier operation of the application in case of pressing the f5 / overload key (after all, not all the data is immediately synchronized with the server)
-
More universal data preloading with server rendering like https://github.com/erikras/react-redux-universal-hot-example/blob/master/src/server.js#L92
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (8 by maintainers)
Top GitHub Comments
Asynchronous actions (interaction with the server) for applications with which I worked were in the majority. Working with promises that are hidden from the user greatly simplified my code.
I’ll try to make examples and tests in the form of a pool request in your repository.
Sorry, I’m not using a flow, and I could not check it.