Giter Site home page Giter Site logo

Comments (9)

bdefore avatar bdefore commented on July 28, 2024

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.

tadeuszwojcik avatar tadeuszwojcik commented on July 28, 2024

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.

bdefore avatar bdefore commented on July 28, 2024

@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.

bdefore avatar bdefore commented on July 28, 2024

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.

tadeuszwojcik avatar tadeuszwojcik commented on July 28, 2024

cool, thanks for the update!

from universal-redux.

bdefore avatar bdefore commented on July 28, 2024

@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.

bdefore avatar bdefore commented on July 28, 2024

3.0.0-rc16 now uses redux-async-connect. More info here #50 (comment)

from universal-redux.

shilpan avatar shilpan commented on July 28, 2024

How do you recommend using it with: http://erikras.github.io/redux-form/#/api/reduxForm?_k=ercae5

from universal-redux.

bdefore avatar bdefore commented on July 28, 2024

@shilpan you should be able to use both the @asyncConnect and @reduxForm decorators on your components.

from universal-redux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.