Automatically Send Changes to the Server by Using onSnapshot

Share this video with your friends

Send Tweet

Let's make sure our changes get persisted. We will use the window.fetch api to store our changes in the json-server. And onSnapshot to do this automatically