Skip to content

Update App.js #15

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

sunnyjangra98
Copy link

Currently there is an issue, i.e. as follow:-

  1. Add new user (user id will be 4)
  2. Delete any user (let say user id 2)
  3. Now add another user (user id will be 4 again), as user.length will be 3 (due to deletion at step 2)
  4. Now delete user id created at step 1 or step 3, it'll delete both users because of same user id, hence updating it to different value each time using Date.now()

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.

1 participant