Git Product home page Git Product logo

Comments (6)

elboman avatar elboman commented on April 16, 2024 1

I have to be honest, I haven't work specifically on this feature, but we have made big changes since that should render this a lot easier to implement.
I guess it's time for me to work on it properly.

I'll keep you posted!

from react.

elboman avatar elboman commented on April 16, 2024

We are working on it 😄 We have been talking about it internally and are trying to figure out a great and straightforward way to implement it.

Since the router is in charge of handling the resolves for each state, the best implementation would be to resolve the data on the server side, serialize it, send it to the client and re-hydrate the router state with the data, otherwise we would fetch all data twice.

This implementation has its limits as you would be able to only declare resolves that can be serialized. So no class instances or stuff like that.

I'll update here as soon as we have anything working ;)

from react.

jonricaurte avatar jonricaurte commented on April 16, 2024

Glad to hear!

This is the library I'm currently using with react-router:

https://github.com/makeomatic/redux-connect
API: https://github.com/makeomatic/redux-connect/blob/master/docs/API.MD

Using both redux and react-router along with redux-connect is a solution working for me for both client and server. Maybe have something similar, or maybe letting the router have plugins for specific kinds of stores like redux. The other one I was looking at was react-resolver, but it doesn't support redux out of the box:

https://github.com/ericclemmons/react-resolver

The only thing without using classes is you would have to have a nested component at the top level if you wanted to setState. Maybe that could be fine if it is just documented well. Decorators as resolvers makes it easy to see whats being injected into the props of the component but not necessarily required. Really like what you guys are doing! Miss ui-router to be honest.

This is the boilerplate I started with for my app which emphasizes the folder by feature/routes are folders (called fractal pattern in React but has been around for a while in Angular community thanks to John Papa):

https://github.com/davezuko/react-redux-starter-kit

Any kind of time frame you guys are looking at for a 1.0?

from react.

lfender6445 avatar lfender6445 commented on April 16, 2024

Any updates on this?

from react.

stale avatar stale commented on April 16, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. This does not mean that the issue is invalid. Valid issues may be reopened. Thank you for your contributions.

from react.

stale avatar stale commented on April 16, 2024

This issue has been automatically closed.

from react.

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.