Skip to content

Conversation

@maximgatilin
Copy link

Home task 1 completed


switch (type) {
case ADD_PEOPLE_ENTRY:
return state.set('list', state.get('list').push(payload.entry))
Copy link
Owner

Choose a reason for hiding this comment

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

удобнее update

* Reducer
* */
export const ReducerRecord = Record({
list: List()
Copy link
Owner

Choose a reason for hiding this comment

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

List не самая удобная структура для хранения, лучше Map

@maximgatilin
Copy link
Author

@romabelka Поправил, проверь пожалуйста. Вопрос - правильно ли, что в качестве ключа я использую first name?

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