In react we are usually faced with CRUD operations on our state and the server, one will ask do i update the state of my app first before calling the server to implement the changes or i call the server then update the changes. const [posts,setPosts...
chibueze.hashnode.dev2 min read
The pessimistic approach is what I'll recommend... You mentioned server speed, that should be figured out and maintain the pessimistic approach.. together with a good UX makes it the best way to handle operations. Nice one!
Geoffrey Israel Chinedu
Software Engineer
Nice article. Thanks for the knowledge you presented here