Comments (9)
Exploring react-fetcher as an alternative on a branch. But it will also need to change when the new React Router API drops: erikras/react-redux-universal-hot-example#531
from universal-redux.
Hi, I've spent way to much time choosing starting point for new project and finally settled on your project. Great work!
Is there a chance you'll bring back fetchData, or alternative way of fetching data for server-side rendering in near future? Or perhaps it's outside of scope of that project?
Cheers
from universal-redux.
@tadeuszwojcik definitely near future. a hook for serverside fetching is a core piece of what universal-redux should provide, and ideally it should also allow custom serverside render hooks in case you want to do roll your own fetching logic (a kind of 'universal rendering middleware'). work on this has been blocked by the changes in updating to react-router 2.0, which are now nearly stable in the 3.x version of UR, and it's there that i intend to look into plugging in either react-fetcher or something like it. whether that makes it back to 2.x depends on if redux-simple-router can support it, which depends on the issue above. at this point i'd recommend going with UR 3.x unless there's an issue with your project code an react-router 2.0-rc4.
from universal-redux.
I'd like to keep this issue open for mainly for backward compatibility, about returning fetchData to 2.x, and #43 for about new and potentially different ways of solving the same problem.
from universal-redux.
cool, thanks for the update!
from universal-redux.
@tadeuszwojcik Release 3.0.0-rc5 has async-props support. Put a static loadProps function on your views to use. https://github.com/rackt/async-props#usage
from universal-redux.
3.0.0-rc16 now uses redux-async-connect. More info here #50 (comment)
from universal-redux.
How do you recommend using it with: http://erikras.github.io/redux-form/#/api/reduxForm?_k=ercae5
from universal-redux.
@shilpan you should be able to use both the @asyncConnect
and @reduxForm
decorators on your components.
from universal-redux.
Related Issues (20)
- onEnter can't redirect HOT 1
- How to access external server api (rails or laravel ... etc) from universal-redux?
- [webpack-isomorphic-tools] (waiting for the first Webpack build to finish)
- how the server side API requests handle the jwt token?
- Move to redux-connect HOT 1
- Help required?
- Question about waiting for Server Requests HOT 1
- Question about โAdd routes, reducer and rootClientComponent aliases so that client has access to themโ HOT 5
- Setting scroll behavior for the router
- SVG Loading Configuration
- Different CSS idents cause server render to be discarded HOT 1
- Using npm dependencies listed in Universal-redux on the project level HOT 3
- [webpack-isomorphic-tools] asset not found HOT 9
- Question: how to alter the JS loader HOT 4
- Passing Express request headers to Html component?
- @@router/UPDATE_LOCATION fired after first dispatched action HOT 3
- Server-side React render was discarded HOT 5
- Use redux-devtools-extension HOT 1
- integrate HappyPack
- should user other way to compile es6-7 with babel
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from universal-redux.