Skip to content

Conversation

@aryzle
Copy link

@aryzle aryzle commented May 18, 2018

No description provided.

@aryzle aryzle requested a review from alexfreska May 18, 2018 02:36

onFocus = () => {
const { dispatch } = this.props
dispatch(Actions.todoEditor.isEditing.toggle())
Copy link
Contributor

Choose a reason for hiding this comment

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

If this component is showing at all you are probably already isEditing

return
}

dispatch(Actions.todos.create({ id: '4', text }))
Copy link
Contributor

Choose a reason for hiding this comment

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

Either add state Field for tracking last used number and increment it, or just gen a uuid

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