I am using useQuery
to handle my API requests and ran to this error when I was trying to handle two GET requests in one functional component, I tried other people’s solutions and the error was still there. It was gone only when I separated two APIs and put each of them in a separate component. My question is why exactly?
I expected both APIs to work just fine alongside each other but the second one was shown as OPTION type in the network tab of the inspector.