Given the following React app, it will make two requests to the jsonplaceholder API, why does this happen and can it be prevented so it only performs one?
import { useMemo } from "react"; class Client { constructor() { this.setup() } setup = async() => { console.log("setup") await fetch("https://jsonplaceholder.typicode.com/todos/1") } } export default function App() { useMemo(() => { return new Client() }, []) return null } https://codesandbox.io/s/currying-water-91t3in?file=/src/App.js