As you make changes to the database with POST and PATCH requests, use a callback function to update STATE to ensure your data is up to date.
Using STATE to ensure the DOM and Database…
As you make changes to the database with POST and PATCH requests, use a callback function to update STATE to ensure your data is up to date.