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

Add "addFriend" action and "friends" reducer #23

Merged
merged 4 commits into from
Jan 15, 2017

Conversation

schuyler
Copy link
Owner

This PR lays out the basic structure for adding Redux actions and reducers to the project.

Included is an initial reducer for maintaining the state of friends, with an UPDATE_FRIEND action that upserts a friend into the queue, adding the friend to the top of the queue if they weren't already present.

Also included are a top-level Redux reducer and a Redux store that uses it.

@obra: please review

Copy link
Collaborator

@obra obra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In theory I follow along. The code seems readable

@schuyler schuyler merged commit 90388fb into master Jan 15, 2017
@schuyler schuyler deleted the schuyler-friends-redux branch January 15, 2017 00:31
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