Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Common reducers formulas #162

Closed
dariocravero opened this issue Jun 21, 2015 · 4 comments
Closed

Common reducers formulas #162

dariocravero opened this issue Jun 21, 2015 · 4 comments

Comments

@dariocravero
Copy link
Contributor

Now that reducers are only functions, I wonder if we could abstract certain patterns to do some common reducing operation (say, CRUD (well the R would be a getter :P)) and create a repo, wiki, (generator?) or something that would contain (and explain) them so that we don't have to reinvent the wheel every time :). It could be as specific or vague as one would want it to be, i.e., it could include any of the following: a reducer, actions, (containers), etc. with their tests.

If there's enough interest I can start drafting some...

@gaearon
Copy link
Contributor

gaearon commented Jun 24, 2015

We need to popularize the idea of higher-order reducers. These are reducers that take your existing reducers, but amend them with some stock functionality (pagination, todo/redo, etc).

Like HOCs, but for reducers :-)

@dariocravero
Copy link
Contributor Author

Sounds like a plan! :)

On Wed, 24 Jun 2015 14:38 Dan Abramov [email protected] wrote:

We need to popularize the idea of higher-order reducers. These are
reducers that take your existing reducers, but amend them with some stock
functionality (pagination, todo/redo, etc).

Like HOCs, but for reducers :-)


Reply to this email directly or view it on GitHub
#162 (comment).

@gaearon
Copy link
Contributor

gaearon commented Jun 24, 2015

Oh wait.. These are transducers aren't they

@gaearon
Copy link
Contributor

gaearon commented Jun 24, 2015

Closing in favor of #176

@gaearon gaearon closed this as completed Jun 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants