TanStackT
TanStack8mo ago
2 replies
embarrassing-maroon

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!
Was this page helpful?