Skip to content

Duplicate use of generateId #11

Description

@shiryz

GenerateId should only be used once, you are using it in both the logic and the dom, the dom should only get the description and call addTodo, while addTodo is the one that generates the id and marks done as false.
Logic and state need to be separated and generating id is logic not state

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions