anandjos / storybrain-internship

2 stars 0 forks source link

[improvement-todo] Count should be the length of todos, No need save in localStorage. #10

Open amalshehu opened 3 years ago

anandjos commented 3 years ago

I am using count for creating task id.If i use length of todos, multiple tasks will have same task id.

amalshehu commented 3 years ago

Use a random hash for id.

amalshehu commented 3 years ago

Or use timestamp if you want to sort.

anandjos commented 3 years ago

3aae64d7bb9098defc41f1132509f9fee72aed35