title: Issue with posts only becoming deletable after a page reload
body: <p>I created a todo-list that runs on NodeJS, MongoDB, and a vanilla html,css,js frontend. A user can make posts and delete posts. On load, the website fetches the json for the all the posts saved to the database and calls a load function. My current issue is that when I delete a recently added task, it stays in the database after reload but is removed from the html. If I delete a task that has already been loaded in from MongoDB, it deletes as intended.</p>
  
  <p>I've looked into it and I'm not entirely sure. The application loads all objects from MongoDB into an array, then adds any user submitted tasks into the array, posting them to my api on submit. The delete command sends a delete request to my api then removes it from the array and html.</p>