https://kniteo.blogspot.com/2024/05/react-does-not-wait-for-server-call-to.html
React Does Not Wait For Server Call To Complete And Throws Error