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

only create reducer function one time #63

Merged
merged 1 commit into from
Feb 7, 2016

Conversation

yocontra
Copy link
Contributor

@yocontra yocontra commented Feb 7, 2016

creating a new function w/ a spread each time is a little wasteful

creating a new function w/ a spread each time is a little wasteful
@acdlite
Copy link
Contributor

acdlite commented Feb 7, 2016

Hmm what do you mean by "each time"? The function is only called once.

@acdlite
Copy link
Contributor

acdlite commented Feb 7, 2016

handleActions() creates a function (a reducer) which is called many times, but handleActions() itself is only ever called once.

@acdlite
Copy link
Contributor

acdlite commented Feb 7, 2016

Oh duh nevermind. This makes sense. Thanks!

acdlite added a commit that referenced this pull request Feb 7, 2016
only create reducer function one time
@acdlite acdlite merged commit aa0445b into redux-utilities:master Feb 7, 2016
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

Successfully merging this pull request may close these issues.

2 participants