T
TanStack2y ago
fascinating-indigo

need some clarification please

Hi, im trying to understand useQueries from documentation, they telling: "If the number of queries you need to execute is changing from render to render, you cannot use manual querying since that would violate the rules of hooks. " (https://tanstack.com/query/v4/docs/react/guides/parallel-queries#dynamic-parallel-queries-with-usequeries) Which rules they talking about ?
Parallel Queries | TanStack Query Docs
"Parallel" queries are queries that are executed in parallel, or at the same time so as to maximize fetching concurrency. Manual Parallel Queries
2 Replies
optimistic-gold
optimistic-gold2y ago
the rules of hooks
fascinating-indigo
fascinating-indigoOP2y ago
i feel so dumb xD ok i see thank you

Did you find this page helpful?