This is due to strict mode in the development environment of React. When built for production, the API will only be called once.