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

🔨 change signatures #44

Merged
merged 5 commits into from
Jul 17, 2017
Merged

🔨 change signatures #44

merged 5 commits into from
Jul 17, 2017

Conversation

Copy link
Collaborator

@bpetetot bpetetot left a comment

Choose a reason for hiding this comment

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

👌 great job !
(just a little comment about a line in the README file, that is not updated in the PR)

README.md Outdated
import factory from 'trampss-redux-factory'
export default factory(/* middlewares */)('id')('api')('todos')
import { map } from 'trampss-redux-factory'
export default map({ key: 'id', path: 'api', name: 'todos' })
```
That's it, you exported a reducer function you can register thanks to combinerReducer in Redux.
Copy link
Collaborator

Choose a reason for hiding this comment

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

"That's it, you just have to export the reducer function and you can register it through combinerReducer in Redux"

Copy link
Member Author

Choose a reason for hiding this comment

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

What about That's it, you just exported the reducer function and now you can register it through combinerReducer in Redux. ?

The reducer function is already exported (this is the code above the sentence)


export default factory({ type: 'uniq', /* other options */ })
```

### state
Copy link
Member

Choose a reason for hiding this comment

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

space more after initialized: true,


// params checkers
const isMiddleware = params => params.engine || params.pre || params.post
const isOptions = params => (!!params.name) || (typeof params === 'string')
Copy link
Member

Choose a reason for hiding this comment

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

no pb on lint ? !!params.name

Copy link
Member Author

Choose a reason for hiding this comment

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

why ? !! is about converting a truthy value to true

}

export const uniq = factory({ type: 'uniq' })
Copy link
Member

Choose a reason for hiding this comment

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

uniq is not connoted with the function uniq of lodash :/
uniq => single ?
map => multi ?

i think, the name of funciton dont match with the features.

Copy link
Member Author

Choose a reason for hiding this comment

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

I agree and I would prefer an issue to argue about it

Copy link
Member

Choose a reason for hiding this comment

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

uniq => simple ?
map => complex ?
@bpetetot An idea ? :)

Copy link
Member Author

Choose a reason for hiding this comment

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

#45

@fabienjuif fabienjuif changed the base branch from master to release July 17, 2017 16:26
@fabienjuif fabienjuif merged commit 208ff6f into release Jul 17, 2017
@fabienjuif fabienjuif deleted the signature branch July 17, 2017 16:27
fabienjuif pushed a commit that referenced this pull request Jul 20, 2017
fabienjuif pushed a commit that referenced this pull request Jul 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants