Closed douglasnaphas closed 7 months ago
useQuery
I had forgotten about not wrapped in a QueryClientProvider, and some code in a functional component before calls to hooks.Well, I think I'm going to have to re-do my whole v2 site to use Vite, or anything other than Next, because Next seems to be re-firing my backend requests periodically. I can't find a trustworthy way to disable this, or to even figure out what is going on. I think it has to do with Next's evil overwriting of global fetch. I seriously regret ever touching Next.js.
Update: It was a skill issue. I had a bunch of React things in the wrong places, especially non-hook code before hook calls at the top of a functional component.
Relates to gh-568.