Reactjs – React Use state run twice
I'm trying to run my Setup function once when the Discord Activity loads (https://discord.com/developers/docs/activities/how-activities-work). My code somehow runs the function twice and creates an error. Here is the code I'm using: function App() { const [auth, setAuth] = useState<authType>(null); async…