Loading your feed…
My API call fires twice in development and I see two requests in the network tab.
useEffect(() => {
fetch('/api/profile').then(r => r.json()).then(setProfile);
}, []);
Is this a bug in my code?
Answers, step-by-step code solutions, and community discussions are reserved for verified members. Create your free account in 30 seconds to unlock answers, ask follow-up questions, and connect with peers.