T
TanStack6mo ago
broad-brown

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-brown
broad-brownOP6mo ago
I'm also using tRPC, could it be because of some form of request batching? lol yep looks like that was it

Did you find this page helpful?