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

Implement words reducer #1

nadeemkhedr opened this issue Feb 19, 2017 · 0 comments

Implement words reducer #1

nadeemkhedr opened this issue Feb 19, 2017 · 0 comments


Copy link

@nadeemkhedr nadeemkhedr commented Feb 19, 2017


In the reducer handle the following actions

WORD_REMOVE //word is removed
WORD_ADD //word is added

the words reducer will contain two reducers

  • byId
  • allIds

And the store should look like this

const store = {
  words: {
    byId: {
      'word1': {
        id: 'word1',
        text: 'Word'
      'word2': {
        id: 'word2',
        words: 'Complicated'
    allIds: ['word1', 'word2']
@nadeemkhedr nadeemkhedr added this to the Release 1 milestone Feb 19, 2017
@nadeemkhedr nadeemkhedr self-assigned this Feb 19, 2017
@nadeemkhedr nadeemkhedr mentioned this issue Feb 24, 2017
6 of 6 tasks complete
@nadeemkhedr nadeemkhedr added the words label Feb 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

1 participant
You can’t perform that action at this time.