https://kniteo.blogspot.com/2024/05/react-js-how-to-prevent-rendering.html
React Js - How To Prevent Rendering Before State Being Updated [hooks]