I am currently building a Tauri app, and inside the app I render ca. 250 small components at the same time. Each component has some data it needs to fetch and then display (it calls an api and then displays an image depending on the result). Now to my question:
When I just add a simple use effect and inside it fetch the data, everything is way slower than just putting the fetch inside a useQuery. What is useQuery doing to optimise this so much? (I am talking about the first load of course, I know that useQuery can cache the results)
2