I've got a web application using React. I've been using the useEffect hook to perform a database call on first render, but 90% of the time the code in the useEffect hook never fires, and the 10% of time it does, I can't figure out why. But if I change literally anything in that script (even a console.log) it is guaranteed to fire 100% of the time.
This is how I'm using useEffect to only fire once since its a database read.
useEffect(() => {
performAction()
},[])
Am I fundamentally misunderstanding how page renders work here?