mantra-sample-blog-app icon indicating copy to clipboard operation
mantra-sample-blog-app copied to clipboard

Redux branch

Open ShockiTV opened this issue 9 years ago • 6 comments

Working redux example (tests not updated yet). Let's correct me if files are not placed correctly or against mantra specs.

ShockiTV avatar Feb 20 '16 22:02 ShockiTV

@ShockiTV, thanks for doing this! I'm learning Redux at the moment. How's your experience with Redux? Is it better than using ReactiveDict? ReactiveDict-based localstate gets a little messy for me now. I'm looking to switch to redux. Would love to hear about your experience first before I switch.

kokjinsam avatar Feb 20 '16 22:02 kokjinsam

It is my first redux experience :D Still I am little confused form this, as mantra actions are quite complex. And in Redux naming Actions are something else. But if I put only redux Actions as Mantra actions, there would have to be very ugly high level reducers calling smaller reducers. I did not feel very good with that. Let's wait what maintainers will think :D

ShockiTV avatar Feb 20 '16 22:02 ShockiTV

@ShockiTV regarding actions/reducers etc. You could take a look at using the redux-ducks concept > https://github.com/erikras/ducks-modular-redux

swennemans avatar Feb 29 '16 09:02 swennemans

Maybe also relevant: https://github.com/kadirahq/mantra/issues/103

I'm also looking for the correct way to integrate Redux with MantraJS. Maybe we can learn something from each other.

swennemans avatar Feb 29 '16 09:02 swennemans

I've been working on a boilerplate (work in progress) using React-Router, Redux, React-Router-Redux, and React Helmet, take a look here. It has a working example. Feedback welcome.

ghost avatar Mar 14 '16 09:03 ghost

@cheersjosh I'm looking forward to a more comprehensive example, using containers, data fetching etc. I'm happy to discuss it :)

swennemans avatar Mar 15 '16 09:03 swennemans