Live data from Hacker News

Redux Blog Example

github.com

21–23 of 23 posts

Re: Redux Blog Example

#21

Earlier quoted context omitted.

Awesome to hear that you found it useful. 1. Splitting folders entrypoints — very nice idea! For now i feel it a bit cryptic. 2. Router is the thing we want to tinker with. Gonna give a look into your solution. 3. At first we had all API interactions in separate folder, and truth to be told it was not very handy. That always felt like one more file to keep track of. Maybe our current design is a a flaw. Open question…

> 3. At first we had all API interactions in separate folder, and truth to be told it was not very handy. That always felt like one more file to keep track of. Maybe our current design is a a flaw. Open question. The common pattern I've seen is: - Dispatch simple actions that contains 'just' a URL - Have a middleware to take those actions, make the API call (based on the URL in the action), and then dispatch further…

I should definitely take a closer look at this approach. Thank you.

PS You are also welcome to PR =)

Re: Redux Blog Example

#22
post #10

Nice. I love Redux + React so much, so I appreciate any effort into making people more aware of it. I was really excited that you found a way to return proper 404's! https://github.com/GetExpert/redux-blog-example/blob/master/... There are a few things I would have done differently though. Check out: - this sample project I made. it's not ideal though and I have learnt a since I made this, but it has a few good ideas…

FYI I've made a set of redux middleware for executing and composing effectful actions: http://github.com/redux-effects/redux-effects Which makes it dead simple to write universal apps and keep all your functions pure. Would love to get some feedback on it from people who are into this stuff.

Cool! i'll take a look and let you know.
Post reply on HN