React Hooks Not to Run on Initial Load
There are times that a page would error out if on initial load, it renders more than once. Rendering more than once unnecessarily is always a waste of resource and loading time, but in some occasion, the page stops loading if there are more than one initial load. For example,…