How to stop a Gutenberg Block from firing multiple GET Requests?
You’re not supposed to make HTTP requests etc directly inside React components, you need to use useEffect. A react component needs to run as quickly as possible, even if work that needs doing isn’t finished yet. By using useEffect you tell React to run a separate function after rendering is complete, giving you the opportunity … Read more