useInfiniteQuery blocks useQuery in modal
I have an infinite table using
useInfiniteQuery. You can click each row to open a modal, which contains a useQuery to load additional data. My issue is that after initial load, it'll start loading the first next page, and while doing so, all useQuery calls in the modals are blocked. Upon completion, the modal loads immediately. Also, this doesn't seem to happen for subsequent next page loads. Does anyone know what might be going on? Am I not supposed to be calling useQuery from modals in this way? Thanks!1 Reply
broad-brownOP•6mo ago
I'm also using tRPC, could it be because of some form of request batching?
lol yep looks like that was it